GCC-Upgrade-mini-HowTo (FINAL 4-8-96)

GCC-Upgrade-mini-HowTo (FINAL 4-8-96)

Post by Kent Robot » Sat, 06 Apr 1996 04:00:00

GCC-Upgrade-mini.HowTo "Trust this, and move into the future." (Kent Robotti)

<Upgrading gcc, libc, binutils, ld, make, ?,>

(Packages, you will need...)
(1). gcc.2.7.2?.bin.elf.tar.gz         <The gcc (c) compiler.>
(2). binutils-     <The latest ? as of this writing.>
(3). libc.5.2.18?.bin.elf.tar.gz       <C Libraries.>    
(4). ld.so-1.7.14?.tar.gz              <The dynamic linker and loader, WHAT?>      
(5). make-3.74-direntfix-elf.tar.gz    <Binary-elf version, of make, that fixes
(6). Optional ? (see below...)          a bug, (No rule to make target) you
                                        might experience, after the upgrade.>
(Where to get...)                          
ncftp> open                          
to> ftp.cc.gatech.edu                
ncftp> cd /pub/Linux/GCC               <For packages 1-4.>
ncftp> ls
ncftp> get packages 1-4
ncftp> cd ..                           <Go back one directory.>
ncftp> cd devel/make                   <For make, /pub/Linux/devel/make>
ncftp> ls
ncftp> get make
ncftp> quit

If the directory contents scroll by, to quickly to see, try ls -r
to display them in reverse, or ls | more (one screenfull at a time,
press q to quit. (ls | more, might not work, depends on ?)

Now move all the packages, to /
?/upgrade# mv *gz /                      <This will move all to />
?/upgrade# cd /
/# tar xzvf gcc.2.7.2?.bin.elf.tar.gz    <Begin unpacking, one at a time.>
/# Next binutils
/# Next libc
/# tar xzvf make-3.74-direntfix-elf.tgz  <Unpack and install make.>
/# cd *elf
/make-3.74-bin-elf# mv make /usr/bin     <Move (make-fixed) to /usr/bin,
                                          overwriting old make.>
/# tar xzvf ld.so-1.7.14.tar.gz          <Unpack ld.>  
/# cd *14
/ld.so-1.7.14# instldso.sh               <Install ld.>

Now of course, you can remove all the packages.
/# rm *tar.gz     <Be sure there's nothing else, in the same dir. with
                   the same extension tar.gz, that you want to keep.>
/# rm -r *elf     <To remove make.>
/# rm -r *14      <To remove ld.>

Cleaning up...

To remove m68k and sparc directories...Whats That... ?

?/# cd /usr
usr/# rm -rf m68k-linux m68k-linuxaout sparc-sun-solaris2 sparc-sun-sunos4.1

To remove the old 2.7.0 directories...

/# rm -rf /usr/lib/gcc-lib/1486-linux/2.7.0
/# rm -rf /usr/lib/gcc-lib/i486-linuxaout/2.7.0

Linking up...

/# cd /lib
/lib# ln -sf /usr/lib/gcc-lib/i486-linux/2.7.2/cpp cpp    <Create new link
/lib# ldconfig -v                                          for cpp. to point  
                                                           to 2.7.2/cpp.>

If your useing slackware, you can use pkgtool, to remove four of these
packages, before you unpack the new ones, (Don't remove ldso.) just
the four below.

~/# pkgtool
Chose (Remove) from the menu, this will take ? BogoMipSeconds.
[x] binutils
[x] gcc270         <Press the space bar to tag them [x] then <Enter>
[x] gmake          <Be sure only these four are tagged [x]>
[x] libc

(Optional packages ?) While your in the neighborhood, try and pick up these  
packages allso, they replace Important programs, that allmost certainly won't
work anymore, after the upgrade, Yea! but, aren't things supposed to work

ncftp> cd /pub/Linux/system/Status/ps  

On this site.
Linux module support utilities.