Solved

Finding and installing the right GCC RPM

Posted on 2004-08-10
8
99,205 Views
Last Modified: 2013-12-06
I need to install GCC.

I typed uname -a and the following was returned:

Linux mysite.com 2.4.20-020stab009.21.777-enterprise #1 SMP Tue Jun 15 13:21:55 MSD 2004 i686 unknown

Where can I find the propor GCC RPM, and how can I install it in the directory: /extratools/gcc  ?

Thanks
0
Comment
Question by:hankknight
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 11

Expert Comment

by:avizit
ID: 11764606
You can find most RPMs at http://rpmfind.net

>>>how can I install it in the directory: /extratools/gcc

use the prefix option

from manpage of rpm
--prefix NEWPATH
    For relocateable binary packages, translate all file paths that start with the installation prefix in the package relocation hint(s) to NEWPATH.
0
 
LVL 16

Author Comment

by:hankknight
ID: 11765050
Thanks!

I went to the URL below and see dozens of RPMs to choose from:

           http://rpmfind.net/linux/rpm2html/search.php?query=gcc


I typed uname -a and the following was returned:

Linux mysite.com 2.4.20-020stab009.21.777-enterprise #1 SMP Tue Jun 15 13:21:55 MSD 2004 i686 unknown


Which RPM would work with my system?
0
 
LVL 11

Expert Comment

by:avizit
ID: 11765110
which linux you are using ?
you can use the RPMS of your distro and system

plus you need not use the rpms with SRPMS in the name , those are source rpms and you dont need them unless you need the source too

/abhjit/
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 16

Author Comment

by:hankknight
ID: 11765429
I don't know what distrabution I am using.  It is on a dedicated server that I have root SSH access to.

Would this give you any clues?

     Linux mysite.com 2.4.20-020stab009.21.777-enterprise #1 SMP Tue Jun 15 13:21:55 MSD 2004 i686 unknown

If not, how can I find out what distrabution I am using so I can find out which RPM to use?
0
 
LVL 22

Accepted Solution

by:
pjedmond earned 475 total points
ID: 11765454
As per http://www.unixgods.org/~tilo/redhat_versions.html

You are on the enterprise version of RH 9.0

Therefore you need the following gcc RPM:

http://rpmfind.net/linux/RPM/Red_Hat_Linux.html

and scroll down until you get to the Red Hat Linux 9 for i386 against gcc. Click the link on the left hand side appropriate to the RPM that you need and then download the RPM from that page. Note that there may be dependencies to be fulfilled here, and you may need to scroll up or down this page to find the other RPMs that you need.

to download the files you need this for gcc at the command line:

wget ftp://fr.rpmfind.net/linux/redhat/9/en/os/i386/RedHat/RPMS/gcc-3.2.2-5.i386.rpm

repeat for other rpm files as required.

to install the rpm:

rpm -ivh gcc-3.2.2.-5.i386.rpm


Althought these are only 'optimised' for the i386 chipset, they will work for you! Perhaps at a later date you can try installing from SRPMs instead:)

HTH:)

0
 
LVL 22

Expert Comment

by:pjedmond
ID: 11765477
P.S You don't need to install it in the directory extratools! The RPM install will put it in the correct place for you, and as that will be in you PATH (having seen your previous question)...everything should work correctly..../me crosses fingers;)
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 11765493
..oh I forgot to add that your server was a Symetric multi-processor one as well:)
0
 

Expert Comment

by:iexxe
ID: 12008110
Once you know what version of gcc is already installed (rpm -a | grep gcc) you can know at least which rpms you should look for.

For looking, as suggested http://rpmfind.net is an excellent resource however I find http://rpm.pbone.net to often have more rpms.  Check or uncheck the RPMs dists you are looking for (but I recommend you keep the "other" checked).

Mirror sites will show up.  I find that the ftp.pbone.net and ftp.redirisu.es are often the best.

Another good recommendation is check out the utility "yum" (do a search at rpm.pbone.net).  Once installed "yum update" is all you need to keep your rpms up2date (kind of like apt-get update).

Cheers
iexxe
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question