Solved

Finding and installing the right GCC RPM

Posted on 2004-08-10
8
99,183 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
 
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now