Hi all, I have a problem installing both the gcc and the gpc compiler.
I use the following (taken directly from http://www.gnu-pascal.de/gpc_51.html#SEC51 ):
tar xzf gpc-20020510.tar.gz tar xzf gcc-core-2.95.2.tar.gz cd gpc-20020510 mv p /export/athen01/prb/programs/gcc-2.95.2/gcc/ cd .. mkdir gpcbuild cd gpcbuild /export/athen01/pmb/gpc/gcc-2.95.2/configure --prefix=/export/athen01/pmb/gpc make make -n install make install
At the last step I get the following error:
chmod a-x "/export/athen01/pmb/gpc/doc/gpc/BUGS" "/export/athen01/pmb/gpc/doc/gpc/demos"/* if [ "`cd p/docdemos && echo a*`" != "a*" ]; then \ (cd "/export/athen01/pmb/gpc/doc/gpc/docdemos"; for f in *; do rm -f "$f"; done) && \ for f in `cd p/docdemos && echo *`; do \ rm -f "/export/athen01/pmb/gpc/doc/gpc/docdemos/$f"; \ /bin/sh /export/athen01/pmb/gpc/gcc-2.95.2/install-sh -c -m 644 "p/docdemos/$f" "/export/athen01/pmb/gpc/doc/gpc/docdemos/$f" && \ chmod a-x "/export/athen01/pmb/gpc/doc/gpc/docdemos/$f" || exit 1; \ done; \ fi install: p/docdemos//export/athen01/pmb/gpc/gpcbuild/gcc/p/docdemos does not exist make[1]: *** [pascal.real-install-doc] Error 1 make[1]: Leaving directory `/export/athen01/pmb/gpc/gpcbuild/gcc' make: *** [install-gcc] Error 2
And gcc is not build. The strange thing is that it works flawlessly on another RedHat 7.3 system...
On the RH7.3 I use gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110).
On the "failure"-system I'm using gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
Any ideas what is wrong???
Best regards
Preben Bohn
===== Computers are like airconditioners: They stop working properly if you open windows.
__________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
Preben Mikael Bohn wrote:
At the last step I get the following error:
chmod a-x "/export/athen01/pmb/gpc/doc/gpc/BUGS" "/export/athen01/pmb/gpc/doc/gpc/demos"/* if [ "`cd p/docdemos && echo a*`" != "a*" ]; then \ (cd "/export/athen01/pmb/gpc/doc/gpc/docdemos"; for f in *; do rm -f "$f"; done) && \ for f in `cd p/docdemos && echo *`; do \ rm -f "/export/athen01/pmb/gpc/doc/gpc/docdemos/$f"; \ /bin/sh /export/athen01/pmb/gpc/gcc-2.95.2/install-sh -c -m 644 "p/docdemos/$f" "/export/athen01/pmb/gpc/doc/gpc/docdemos/$f" && \ chmod a-x "/export/athen01/pmb/gpc/doc/gpc/docdemos/$f" || exit 1; \ done; \ fi install: p/docdemos//export/athen01/pmb/gpc/gpcbuild/gcc/p/docdemos does not exist
I don't undestand this. It seems like $f contains /export/athen01/pmb/gpc/gpcbuild/gcc/p/docdemos, but f should only contains file names without directories (the `echo *' in the `for' loop).
Unless I'm overlooking something, you either have a very strange shell or echo command, or something else is going wrong ... If you know a little about shell programming, you might want to try to debug it, otherwise I can't help you now.
I have little time now, and I'll be out of town for ~3 weeks (I'll read email and might answer occasionally, but don't bet on it) ...
Frank
Unless I'm overlooking something, you either have a very strange shell or echo command, or something else is going wrong ... If you know a little about shell programming, you might want to try to debug it, otherwise I can't help you now.
OK, I'll try to look at it... Since it works at the other machine it's not critical...
The reason I was trying to install both the gcc and the gpc was that I needed to include some Fortran-programs as well... But now I see that g77 is not included... Does anyone know what gcc-tar-ball I should use (that works with gpc) that also includes g77?
Best regards
Preben Bohn
===== Computers are like airconditioners: They stop working properly if you open windows.
__________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com
OK, found the g77 (and all the others) at ftp://ftp.gnu.org/pub/gnu/gcc/gcc-2.95.2/gcc-everything-2.95.2.tar.gz
Where else... :-)
Best regards
Preben Bohn
===== Computers are like airconditioners: They stop working properly if you open windows.
__________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com