LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2003, 04:01 PM   #1
loran
Member
 
Registered: Jan 2003
Posts: 121

Rep: Reputation: 15
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?
 
Old 03-03-2003, 04:14 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
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. :-)
 
Old 03-03-2003, 04:22 PM   #3
loran
Member
 
Registered: Jan 2003
Posts: 121

Original Poster
Rep: Reputation: 15
I'm sorry. Explain to me what this is supposed to do...
 
Old 03-03-2003, 04:29 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
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).
 
Old 03-03-2003, 04:32 PM   #5
loran
Member
 
Registered: Jan 2003
Posts: 121

Original Poster
Rep: Reputation: 15
ok, standby.
 
Old 03-03-2003, 05:15 PM   #6
loran
Member
 
Registered: Jan 2003
Posts: 121

Original Poster
Rep: Reputation: 15
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.
 
Old 03-03-2003, 05:16 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
That means you don't have them installed...

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

Cool
 
Old 03-03-2003, 05:29 PM   #8
loran
Member
 
Registered: Jan 2003
Posts: 121

Original Poster
Rep: Reputation: 15
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?
 
Old 03-03-2003, 06:04 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Depends on your Mandrake version. 9.0 uses 3.2 or 2.96.
 
Old 03-03-2003, 06:52 PM   #10
loran
Member
 
Registered: Jan 2003
Posts: 121

Original Poster
Rep: Reputation: 15
I'm 8.2
 
Old 03-03-2003, 10:02 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 03-04-2003, 12:22 PM   #12
loran
Member
 
Registered: Jan 2003
Posts: 121

Original Poster
Rep: Reputation: 15
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!"
 
  


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
problems with C compiler jurebe Slackware 2 03-09-2005 07:57 AM
C Compiler problems..... metallicasorc Linux - Software 2 01-17-2005 08:27 AM
Compiler problems Tangz Linux - Software 12 07-17-2004 06:14 PM
vsftpd port problems revisited twelve Linux - Networking 3 05-19-2004 03:17 AM
problems with c-compiler salokas Linux - Software 3 05-07-2004 07:36 AM


All times are GMT -5. The time now is 10:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration