has anyone installed two versions of gcc/cpp/make side by side? i'd like to compile 2.2.x kernels on my suse box, but i can't get the kernel to compile with the version of gcc i have now (3.3.3).
I have done this in the past (3-5 years ago), though not recently. Do
not remember how they were installed (RPM or tarball). It was either
SuSE or RedHat, both RPM distributions. I had one version in the PATH
of root, the other version in the PATH of normal users. Root version
was only used to compile the kernel. 2.2 kernels probably want gcc
2.95.x, IIRC.
HTH,
Jeffrey
Quoting mmarseglia
has anyone installed two versions of gcc/cpp/make side by side?
i'd like to compile 2.2.x kernels on my suse box, but i can't get the kernel to compile with the version of gcc i have now (3.3.3).
mmarseglia wrote:
has anyone installed two versions of gcc/cpp/make side by side?
i'd like to compile 2.2.x kernels on my suse box, but i can't get the kernel to compile with the version of gcc i have now (3.3.3).
Yes. Download the version of gcc you want as the second version (e.g. gcc-3.4.3 from a GNU mirror) and from a console $ tar jxvf gcc-3.4.3.tar.bz2 $ cd gcc-3.4.3 $ ./configure --prefix=/opt/gcc-3.4.3 $ make $ su # make install I use a file ~/bin/gcc-3.4.3 to set up the environment correctly. It contains: LD_LIBRARY_PATH=/opt/gcc-3.4.3/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH export MANPATH=/opt/gcc-3.4.3/man:$MANPATH export PATH=/opt/gcc-3.4.3/bin:$PATH export CPATH=/opt/gcc-3.4.3/include:$CPATH Then, when I want to switch to the alternative version, I use $ source ~/bin/gcc-3.4.3 and the alternative gcc is now the default, at least until I start another shell. -- JDL
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El Domingo, 7 de Noviembre de 2004 23:43, mmarseglia escribió:
has anyone installed two versions of gcc/cpp/make side by side?
i'd like to compile 2.2.x kernels on my suse box, but i can't get the kernel to compile with the version of gcc i have now (3.3.3).
You can install my gcc rpms. They are installed under '/opt' and they doesn't interfer with system gcc. You can find the components as 'gcc_34-*' rpms at: ftp://ftp.gwdg.de/pub/linux/misc/suser-gbv/rpms or including the componet suser-gbv in your sources.list (if you are using apt). The compiler and binaries will have the suffix '_34' . So the C cpmpiler is called gcc_34 ... Of course you will need to add PATH and LD_LIBRARY with news directory. Read the README file ;). Guillermo. P.D. gcc-3.4.3 is already available for SuSE 9.2 - -- Guillermo Ballester Valor gbv@oxixares.com Ogijares, Granada SPAIN Linux user #117181. See http://counter.li.org/ Public GPG KEY http://www.oxixares.com/~gbv/pubgpg.html -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBkRE7OA2UfsyErNQRAkBCAKCVRYaGHON6G7i4+zXczaYLUvxz3QCgkZhl IzL4RGY6l28IO6KJs005V4s= =n/+x -----END PGP SIGNATURE-----
participants (4)
-
Guillermo Ballester Valor
-
Jeffrey L. Taylor
-
John Lamb
-
mmarseglia