According to Pedro Quaresma de Almeida:
I have installed GNU Pascal compiler, apparently without any problem.
bash# dpkg -i gpc_2.0-3.deb (Reading database ... 23654 files and directories currently installed.) Preparing to replace gpc (using gpc_2.0-3.deb) ... Unpacking replacement gpc ... Setting up gpc ...
bash# dpkg -i libgpc2_2.0-3.deb (Reading database ... 23654 files and directories currently installed.) Preparing to replace libgpc2 (using libgpc2_2.0-3.deb) ... Unpacking replacement libgpc2 ... Setting up libgpc2 ... bash# ldconfig
This looks like a Debian distribution. I didn't know that there exists a Debian distribution of gpc-2.0 ...
but when I try to use it ...
bash$ gpc Ackerman.p ld: cannot open -lgpc: No such file or directory bash$
Obviously, the `gpc' driver program cannot locate the library `libgpc.a'.
From the installation log I have the impression that you did not install
`libgpc.a' but a file named `libgpc2.a'. Perhaps both are the same, and it suffices to link `libgpc.a' to `libgpc2.a' in your `/usr/lib/' directory or whereever you keep your libraries?
In any case it should solve your problems (without warranty, of course ;-) to install an "original" binary distribution of gpc-2.0 like those on
ftp://kampi.hut.fi/jtv/gnu-pascal/binary/
We provide at binaries for i586-linux (elf), i586-linuxaout, and i586-linuxoldld. The "i586" means that some optimization have been done for the Pentium; the compiler runs fine on an i486 or 80386 and can produce code for all of these processors. To install such a binary package, cd to the top directory and "tar xzf" the archive, e.g.
myhost:/# tar xzf /usr/src/gpc-2.0.i586-linux.tar.gz
Good luck,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201] maintainer GNU Pascal - http://home.pages.de/~gnu-pascal/ [970125]