8

On Ubuntu 10.04 I had installed the GNU Pascal Compiler (package gpc).

After moving to Ubuntu 12.04 / 64 bit I cannot find the package any more. Google and the GNU Pascal homepage did not help much.

So I wanted to ask if the package has been discontinued, renamed, or moved to a different repository.

Eric Carvalho
  • 55,453
Giorgio
  • 396

5 Answers5

5

It appears that gpc was removed from Debian (and subsequently Ubuntu) in February 2011 due to the project being unmaintained/discontinued.

Jorge Castro
  • 73,717
3

You can install the Free Pascal compiler alone using the command:

sudo apt-get install fp-compiler

...then invoke and run a simple program such as:

program Hello;
begin
  writeln ('Hello, world.');
end.

...using the following commands:

fpc hello.pas
./hello
3

PPA versions of the GNU Pascal Compiler for Ubuntu can be downloaded from https://launchpad.net/~ueter/+archive/ubuntu/gpc-3.4

Jens Erat
  • 5,131
  • 7
  • 33
  • 37
3

Not exactly gpc, but if you don't mind an alternative, you could use Free Pascal. This will install the IDE and compiler:

sudo apt-get install fp-ide

Note that the IDE is terminal based. To start it from the prompt:

fp

For reference, see http://fusharblog.com/installing-free-pascal-in-ubuntu/

Nagev
  • 704
0

you could try getting an rpm and converting it using alien, as per this post on the gpc mailing list: http://www.g-n-u.de/pipermail/gpc/2013-June/015249.html

quote:

You might be able to use one of these. https://software.opensuse.org/package/gpc

I converted the Fedora package with 'Alien' and its working for me on Debian (64 bit).