我正在尝试运行一个程序,在其描述中显示它需要“免费 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"
我想念什么?谢谢!
最佳答案
请尝试
sudo apt-get update
sudo apt-get install build-essential
上面的命令应该安装 ubuntu 所需的所有构建工具,例如 Gnu Compiler Collection (gcc) 工具等。无论您的系统上缺少什么,我猜这些命令都有可能修复它。
关于linux - 该系统上未安装 Pascal 编译器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26269649/