Pascal compiler not installed on this system?

757 Views Asked by At

I am trying to run a program, in its description it shows it needs "Free GCC(C) and GPC(Pascal) compiler". I am running 32bit Ubuntu 10.04 and has the package "GPC-4.1" and "GPC" installed.

I have checked my gpc version:

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

So I believe the GPC is installed successfully.But when I am running the program, it still shows:

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

What do I miss? Thanks!

1

There are 1 best solutions below

0
On

Please try

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

The commands above should install all necessary build tools for ubuntu, such as Gnu Compiler Collection (gcc) tools and so on. Whatever is missing on your system, I'd guess there is a chance these commands will fix it.