homepage Welcome to WebmasterWorld Guest from 54.166.62.226
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Installing GCC on a Redhat AS 2.1
Missing C Compiler
windspinner

5+ Year Member



 
Msg#: 3040789 posted 3:29 am on Aug 10, 2006 (gmt 0)

I'm on my second day of settiung up my Linux Server. The Flavor I installed is the RedHat As 2.1, I was supposed to install PostgreSQL 8.1 but when I tried doing so, it said that I do not have any valid C Compiler. I tried typing "man gcc" just to see and it appears I do not have any gcc on my box.

So I downloaded one, and when I tried to configure its prefix it said:

[root@localhost gcc-4.1.1]# ./configure --prefix="/sbin/gcc"
loading cache ./config.cache
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH

Any help? I couldn't quite figure out why it's now looking for cc...

 

Shenron

5+ Year Member



 
Msg#: 3040789 posted 11:29 am on Aug 10, 2006 (gmt 0)

you'd better try to install gcc from rpm

mcavic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3040789 posted 3:16 pm on Aug 10, 2006 (gmt 0)

Ideally everything should be installed from rpm. But also, cc should be provided on the RedHat CD. Should be listed under development tools or compilers.

windspinner

5+ Year Member



 
Msg#: 3040789 posted 1:34 am on Aug 11, 2006 (gmt 0)

I figured out that much and I have my gcc up and on it. My only mistake was that I let someone else install my RH for me so I can save time when I know that I could be wrong, and I was. It's really hard to do your own job, harder to have it done by someone else, hardest if forced to have it done by others. But the experience taught me a lot. At least I know what RPMs are by this time, and now I know that Linux is more interesting in its command line mode.

Thanks a lot, guys. :) Now can anyone tell me how to pull a command from the history list?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved