【问题标题】:Pascal compiler not installed on this system?这个系统上没有安装Pascal编译器?
【发布时间】:2014-10-20 05:54:50
【问题描述】:

我正在尝试运行一个程序,在其描述中显示它需要“免费 GCC(C) 和 GPC(Pascal) 编译器”。我正在运行 32 位 Ubuntu 10.04 并安装了包“GPC-4.1”和“GPC”。

我检查了我的 gpc 版本:

$ gpc --version
gpc 20070904, based on gcc-4.1.3 20080704 (prerelease) (Ubuntu 2.1-4.1.2-27ubuntu2)

所以我相信GPC安装成功了。但是当我运行程序时,它仍然显示:

gcc: /home/source/fmopt.pas: Pascal compiler not installed on this system
cc1: error: unrecognized command line option "-fautomake"

我错过了什么?谢谢!

【问题讨论】:

  • 我不是gpc高手,看看gpc有没有自带gcc,试试把gpc dir放在path前面。 Afaik gnu-pascal.de 上的邮件列表仍在增加(但流量每年只有少数)。有关一般 GPC 状态,另请参阅 en.wikipedia.org/wiki/GNU_Pascal。考虑迁移到仍受支持的 FPC。
  • 你的 gcc 版本是什么? GPC 的下载站点说你必须有一个与 gpc 匹配的 gcc 版本,他们甚至提供了两者的匹配包。

标签: linux ubuntu gcc pascal gpc


【解决方案1】:

请尝试

sudo apt-get update
sudo apt-get install build-essential

上面的命令应该为 ubuntu 安装所有必要的构建工具,例如 Gnu Compiler Collection (gcc) 工具等。无论您的系统缺少什么,我猜这些命令都有可能修复它。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-08-27
    • 1970-01-01
    • 2018-09-13
    • 2017-07-04
    • 2016-02-15
    • 1970-01-01
    • 1970-01-01
    • 2019-06-28
    相关资源
    最近更新 更多