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
  • 53,609
  • 102
  • 137
  • 162
Giorgio
  • 396
  • 2
  • 4
  • 13

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
  • 70,934
  • 124
  • 466
  • 653
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
user643722
  • 363
  • 1
  • 2
  • 11
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
  • 4,993
  • 7
  • 31
  • 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
  • 624
  • 1
  • 12
  • 17
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).

  • Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, [it would be preferable](http://meta.stackexchange.com/q/8259) to include the essential parts of the answer here, and provide the link for reference. – Braiam Aug 20 '13 at 19:35