LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   compiler problems (revisited) (https://www.linuxquestions.org/questions/linux-newbie-8/compiler-problems-revisited-48081/)

loran 03-03-2003 03:01 PM

compiler problems (revisited)
 
Ok, maybe a different approach?

When I try to compile, error msg says "no acceptable cc found in $path".

I tried whereis cc , whereis gcc >>I have them.

I tried to echo $path...nothin'!

any suggestions?

Mara 03-03-2003 03:14 PM

Try 'export CC=gcc' (or with the right path if you don't have it in PATH.
$path should be empty, $PATH should have many directories listed in.

Sorry for so many pathes. :-)

loran 03-03-2003 03:22 PM

I'm sorry. Explain to me what this is supposed to do...

Mara 03-03-2003 03:29 PM

First check if you can run gcc. Just try 'gcc'. You should get something like: 'gcc: No input files'.

If it works run 'export GCC=gcc' and 'export CC=gcc'. If not run 'whereis gcc' and use the path it gives you: 'export GCC=/usr/bin/gcc' and 'export CC=/usr/bin/gcc' (an example). Try the script again. Many configure scripts use GCC or CC environmental variables as location of the compiler (using the viariables you can also add extra option to nearly every compilation, for example optimization, but that's another story).

loran 03-03-2003 03:32 PM

ok, standby.

loran 03-03-2003 04:15 PM

Huh..I don't get it.
whereis gcc, whereis cc both show nothing. Just gcc:, and cc:

could it be named something else?
I don't have the installation CDs so I can't look there for them.
If I can find them in RPMs, would that work?
Where could I look besides rpmfind.org, they don't have them.

MasterC 03-03-2003 04:16 PM

That means you don't have them installed...

Look at a mirror, like the one I pointed you to in your other thread ;)

Cool

loran 03-03-2003 04:29 PM

Yeah, I tried to do that...couldn't make head or tail from it. (Stoopid Windoze User). HAHA

I did find gcc-2.95.2-12mdk.1586.rpm on another site.
Is this it?

Mara 03-03-2003 05:04 PM

Depends on your Mandrake version. 9.0 uses 3.2 or 2.96.

loran 03-03-2003 05:52 PM

I'm 8.2

MasterC 03-03-2003 09:02 PM

Well then 2.95 is just fine (no?). Really suggest using urpmi to install it though. It's going to alleviate alot of the headache you will get from trying to install 1 package at a time (since you'll meet the dependency queen- gcc).

Cool

loran 03-04-2003 11:22 AM

Ok, we'll end this thread since you (and a few others) are helping me on the other one.

For anyone else interested, its

"I don't even know what to call this one!"


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