Installing gcc (CentOS5.2); this can't be this hard!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Installing gcc (CentOS5.2); this can't be this hard!
Hello friends,
I am struggling to install gcc et al in CentOS v 5.2
so I can get compiling some C programs.
I have used preinstalled linux systems (Red Hat, etc) in the past so
I am familiar with Linux commands, but am a raw newbie when it comes to configuring.
After finally getting the RPMs loaded, I used yum to install(?) the 'Development Tools' package. I end up with a executable /usr/bin/gcc;49245915 and don't know what to do with it.
I end up with a executable /usr/bin/gcc;49245915 and don't know what to do with it.
Use gcc to compile your code? I'm confused about what your question really is. If it's about how to use gcc, surely you could have found a simple guide to using it, such as this one.
Please clarify whether you're having problems installing gcc or actually using it.
Sorry about the way I phrased that...
I have used gcc in the past so that's all fine.
It's the installation I am having a headache over.
As stated, I ended up with an executable gcc;49245915
When I try to rename it, it barfs on the semicolon.
I felt with a file name that strange, I must be missing a step.
However,...
In thinking over your response, I realized that prior to
the yum update, I had created a subdirectory called /usr/bin/gcc/
in my "fiddle about" stages.
The updater might have seen that and worked around it,
creating the rightful gcc executable but with an extension.
Long story short, deleted the bad directory,
removed & reupdated gcc(et al)
Works great, I can compile progs now, all is well.
I'm not that familiar with RHEL/CentOS, and haven't used yum, but whenever I need to install a package on RHEL, I mount the dvd ISO, go to ./rheldvd/Server, then rpm -i <name of package>
EDIT: Hit post too late, and there isn't a delete button..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.