Welcome to BYO Linux Portal  
Home · Contact · Discussion · Links · Sponsors 
 
 


 
 
BYO Linux



 
 


 
 
GCC 2.95.2 Install
Text VersionPrinter Friendly Version

Next, we will be installing GCC 2.95.2 as our default compilers. It's interesting to note that with the release of 2.95.2, many compilers such as c, c++, fortran and others have been included in the package whereas older gcc compilers were only c compilers. This first install will be a static install. We'll re-install dynamically later.

You should still be in Linux1 after you backed everything up in the last chapter.

Goto the place your gcc-2.95.2 package is and unpack it there. Mine is in /root/origanals. Wherever it is, you will need to remember it's location later in order to create a symlink to it on linux2.

Next, go into that gcc-2.95.2 directory and type the following:
./configure --enable-shared --disable-nls

make CFLAGS='-g -O2 -static' bootstrap (this will take about 30 minutes)

(Note: That's an O2, not a zero two)

Next, reboot to linux2 and mount the system read-write. Mount linux1 as well. Since my GCC package was located in /root/origanals on linux1, I need to create a symlink on linux2. Type the following:
mkdir /root/origanals
cd /root/origanals
ln -s /mnt/linux1/root/origanals/gcc-2.95.2 gcc-2.95.2
(and yes, that is a space between the 2 and the g).

Next, goto /mnt/linux1/root/origanals/gcc-2.95.2 and type
make install

Ignore any errors regarding a clock skew. Next, a few symlinks are necessary. Type the following:
ln -s /usr/bin/gcc /usr/bin/cc
ln -s /usr/bin/cpp /lib/cpp

Remove the origanals directory and the symlink inside by typing rm -r dirname where dirname is the name of the directory. Remain in this distribution now, linux1 is no longer necessary except to access the downloaded packages.