LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-19-2008, 02:17 PM   #1
LanceLink
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Rep: Reputation: 0
Question 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.

Please let me know what I am missing here!

Thanks in advance!
 
Old 11-19-2008, 02:30 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by LanceLink View Post
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.
 
Old 11-19-2008, 03:08 PM   #3
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
Sounds like you already installed gcc via yum. Like Nylex I'm not sure of your question.

But to use yum all you need is an internet connection and type:
yum install packagename

yum will go find the gcc package and install it for you so that it is ready to use. It's really that easy.
 
Old 11-19-2008, 03:36 PM   #4
LanceLink
LQ Newbie
 
Registered: Oct 2007
Posts: 2

Original Poster
Rep: Reputation: 0
OK, right

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.

Thanks for your kind help.

Last edited by LanceLink; 11-19-2008 at 03:39 PM.
 
Old 11-19-2008, 03:46 PM   #5
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Rep: Reputation: 33
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..

Last edited by djeikyb; 11-19-2008 at 03:48 PM.
 
  


Reply

Tags
gcc, install, rpm


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: error while installing VB6 via wine into CentOS5 bimmax Linux - Desktop 0 11-07-2008 11:06 AM
Installing java 1.3.9 on a 64bit CentOS5 system? neocookie Linux - Software 4 09-29-2008 07:52 AM
Installing xlc on CentOS5 - where do I find it? neocontrol Linux - Software 1 06-15-2008 01:35 PM
Installing Mandriva 2006 - Hangs installing hard drive controller nvidia mcp04 sata DanielJPayne Mandriva 7 01-19-2006 03:15 AM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 06:28 AM


All times are GMT -5. The time now is 10:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration