LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why For this no work (https://www.linuxquestions.org/questions/linux-newbie-8/why-for-this-no-work-14741/)

digital bots 02-20-2002 09:31 PM

Why For this no work
 
Ok i have Red Hat 7.2 and it uses a compiler that needs to be set to gcc 2.95.x . So i extract it then i did.
./configure then i got this is what i got
Configuring for a i686-pc-linux-gnuoldld host.
Created "Makefile" in /home/angomeka/gcc-2.95.3
./configure: cc: command not found
*** The command 'cc -o conftest -g conftest.c' failed
*** You must set the environment variable CC to a working compiler.

So how do i fix this guys?

DMR 02-20-2002 10:36 PM

OK, so you probably don't have cc installed. I think you just need to do
Code:

export CC=gcc  for Bash
or
setenv CC gcc  for csh

That might not be it exactly, but it's something like that.

digital bots 02-21-2002 06:02 AM

Quote:

Originally posted by DMR
OK, so you probably don't have cc installed. I think you just need to do
Code:

export CC=gcc  for Bash
or
setenv CC gcc  for csh

That might not be it exactly, but it's something like that.

i tried it and it didnt work :(

acid_kewpie 02-21-2002 08:19 AM

if you do have cc running on your system, try "./configure --cc=/where/oh/where/is/cc" or whatever

you should also be able to use an older rpm for gcc from rpmfind.net

digital bots 02-21-2002 12:11 PM

thanks for the tip. I was wondering if there was a RPM finder.


All times are GMT -5. The time now is 12:06 PM.