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