> > Hmm, well would just 'configure && make' be acceptable?:
> >
> > $ wget http://ftp.heanet.ie/pub/gnu/gcc/gcc-4.1.0/gcc-core-4.1.0.tar.bz2> > $ gtar -xjf gcc-core-4.1.0.tar.bz2 && cd gcc-4.1.0
> > $ (./configure && time nice -n 10 gmake -j48) > /dev/null
> > <snip>
>> Nice try, Paul, but no cigar.
>> Connor and I were talking of doing this on an rhel i86 box under linux.
> I made no claim with regard to anything else. 'Another (unspecified)
> enterprise OS' is not what we want. Neither do we want to see gmake,
> sun, sparc, or solaris. It's smoke and mirrors, Mandrake :-). I still
> claim to be a _user_, but I'm not that green :-).
Here's a CentOS 4 box, fully updated:
[kenn at datus kenn]$ mkdir tmp/gcc-test
[kenn at datus kenn]$ cd tmp/gcc-test
[kenn at datus gcc-test]$ wget
http://ftp.heanet.ie/pub/gnu/gcc/gcc-4.1.0/gcc-core-4.1.0.tar.bz2
[kenn at datus gcc-4.1.0]$ tar -xjf gcc-core-4.1.0.tar.bz2 && cd gcc-4.1.0
[kenn at datus gcc-4.1.0]$ ./configure
...
[kenn at datus gcc-4.1.0]$ make
...
[kenn at datus gcc-4.1.0]$ ./host-i686-pc-linux-gnu/gcc/xgcc --version
xgcc (GCC) 4.1.0
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[kenn at datus gcc-4.1.0]$ make DESTDIR=/home/kenn/tmp/gcc-inst install
...
[kenn at datus gcc-4.1.0]$ echo -e '#include <stdio.h>\nint main (void) { \
> printf("hello world\\n"); }' > test.c && \
> /home/kenn/tmp/gcc-inst/usr/local/bin/gcc -o ./test -O -lc ./test.c &&
./test
hello world
> File one on the configure script if you didn't have binutils-2.15.91 or
> later, which is not, incidentally, a standard version of rhel.
[kenn at datus gcc-4.1.0]$ rpm -q binutils
binutils-2.15.92.0.2-18
[kenn at datus gcc-4.1.0]$ rpm -q centos-release
centos-release-4-3.2
And if you look at
http://ftp.heanet.ie/pub/redhat/linux/enterprise/4/en/os/i386/SRPMS/
you'll see that binutils-2.15.92.0.2-10.EL4 is the version that ships
with stock RHEL4.
To answer Conor's original question, compiling GCC 4.1.0 on RHEL4 should
be trivially easy.
Once you've done the 'make install' step, you should be able to
copy the complete install tree _anywhere_, put the ..../usr/local/bin
directory on PATH ahead of /usr/bin and you've got GCC-4.1.0 as your
default compiler.
Later,
Kenn
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!