LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2005, 02:03 PM   #1
Gersen
LQ Newbie
 
Registered: Sep 2003
Location: Indiana, USA
Distribution: RedHat 9, Knoppix 3.4
Posts: 18

Rep: Reputation: 0
still wrestling with gcc


howdy all,

earlier I posted:

"I have a Red Hat 9 box that's primarily used for Linux learning purposes. Right now I'm trying to update a bunch of the modules, and while I'm a decent Linux user, I'm a newbie to a lot of it's configuration.

I have a list of modules I'm trying to bring up to date. The machine doesn't have GCC installed. I have gcc-3.4.3 downloaded and uncompressed. When I try to do a "./configure" I get an error message telling me I have to "set the environment variable CC to a working compiler"


and member Artanicus was kind enough to point me to some RPMs.

Next issue:

When I try to install the gcc RPM, which I understand is done with:

rpm -i package name

it runs very briefly, dumps some archives in /usr/src/redhat/SOURCES and stops.

Ok, I figure maybe I could have gotten a hosed RPM? I download 2 others, and when I try installing them I see no result whatsover.

So... I discover I have 'cpp' on my system, and I look up how to set the environmental variable "CC" to /usr/bin/cpp. Once this is done, and I logged out and back in to make sure it's read (don't know if that was necessary), I try the gcc /.configure again and STILL am told I need to set the CC variable to a working compiler...

Please point me in any helpful direction to resolve this, whether it's fixing my environment so that the /.configure will rum, or finding why my RPM doesn't complete, or finding the right RPM, or anything else.

Some info on my system:
RedHat 9
kernel 2.4.20-8
Athlon 2000+
is there any other info that would be relevant?

thanks,

Gersen
 
Old 04-17-2005, 02:07 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Hi!

If you don't have gcc installed, you won't be able to compile anything, including gcc. Think about it: How can you compile something without a compiler? You should really stick with .rpm's, at least for installing gcc.

You very best shot, however, would be to install apt-get and synaptic for Redhat 9.0 to get those things installed. Take a look in here to learn what apt-get is and what it does:

http://freshrpms.net/apt/

It has examples and everything in that page.

Regards!
 
Old 04-17-2005, 02:16 PM   #3
Gersen
LQ Newbie
 
Registered: Sep 2003
Location: Indiana, USA
Distribution: RedHat 9, Knoppix 3.4
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks MegaMan X,

Your post proves that you didn't read my post.

I appreciate the effort though. I did get a response from elsewhere that got me past my sticking point, so I'll put this thread to bed.


G.
 
  


Reply


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
newb wrestling with kernel upgrade Gersen Linux - Software 2 04-19-2005 10:44 PM
Wrestling with getting sound working MDesigner Linux - Software 10 03-04-2005 12:08 AM
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM
Wrestling with X Windows PaulC24 Linux - Software 13 04-14-2003 02:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:37 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
Open Source Consulting | Domain Registration