I'm not much interested in the systems programming issues of installing gpc, and the version I downloaded as a binary and installed under Redhat 5.2 years ago (version 2.8.1) has been quite satisfactory until yesterday when it got itself into an endless loop while compiling a program. I know that the program compiles and runs under Redhat 6.2 and gpc version 2.95.2 19991024. I'd be very grateful if someone could tell me the latest version of gpc that is available as a Redhat .rpm file (and where to find it).
Thanks, in advance,
John Ollason
John Ollason wrote:
I'm not much interested in the systems programming issues of installing gpc, and the version I downloaded as a binary and installed under Redhat 5.2 years ago (version 2.8.1) has been quite satisfactory until yesterday when it got itself into an endless loop while compiling a program. I know that the program compiles and runs under Redhat 6.2 and gpc version 2.95.2 19991024. I'd be very grateful if someone could tell me the latest version of gpc that is available as a Redhat .rpm file (and where to find it).
AFAIK the latest version available as Redhat RPM is GPC 19990118 on backend 2.8.1 (in www.gnu-pascal.de/old/), which is probably the same one you "installed years ago". There is however a recent Mandrake RPM (<...>/Mandrake/RPMS/gcc-gpc-2.95.3-5mdk.i586.rpm, where <...> is any Mandrake 8.2 mirror, see www.linux-mandrake.com/en/ftp.php3). Mandrake is very similar to RH, so there are good chances it will install on your system as well.
If this fails, don't be afraid of installation from the source tarballs, it's quite easy, and it works without any gotchas on RH:
1) Download gpc-20020410.tar.gz and gcc-core-2.95.2.tar.gz from http://www.gnu-pascal.de/current/
2) Unzip the sources:
tar xzf gcc-core-2.95.2.tar.gz tar xzf gpc-20020410.tar.gz mv gpc-20020410/p gcc-2.95.2/gcc
3) Prepare a build directory, and compile:
mkdir gpc-build cd gpc-build ../gcc-2.95.2/configure --enable-languages=pascal make
(The configure script will ask you to press ENTER before patching gcc sources for gpc. Do it.)
4) Install (as root):
cd gcc make pascal.install-with-gcc
This puts gpc in /usr/local/bin, and it installs the matching gcc along with it, except for the user-level driver binary (so typing `gcc' still invokes your system compiler).
Emil Jerabek
Thanks, in advance,
John Ollason