LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03: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, 03:14 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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, 03: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, 03:29 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

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

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

Rep: Reputation: 69
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, 04: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, 05:04 PM   #9
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

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

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

Rep: Reputation: 69
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, 11:22 AM   #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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:23 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
Open Source Consulting | Domain Registration