Solved

Finding and installing the right GCC RPM

Posted on 2004-08-10
8
99,199 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

778 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