LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   still wrestling with gcc (https://www.linuxquestions.org/questions/linux-software-2/still-wrestling-with-gcc-314214/)

Gersen 04-17-2005 03:03 PM

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

Mega Man X 04-17-2005 03:07 PM

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!

Gersen 04-17-2005 03:16 PM

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.


All times are GMT -5. The time now is 09:28 AM.