LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-08-2009, 12:40 PM   #1
nchettle
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Rep: Reputation: 0
No acceptable C compiler found in $PATH


I got this message when I tried to install a package using "./configure". I assumed it was because GCC was missing so I downloaded GCC 4.4.0 unzipped it and got the same message when I tried to install that. The PATH was pointing to the right directory.

I have an ASUS Eee PC 901 with Xandros.
 
Old 05-08-2009, 12:48 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,870
Blog Entries: 14

Rep: Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112
Try running "which gcc" to see if it finds the compiler. If it doesn't then it is not in your PATH correctly. If it does then it may mean the configure script is setting PATH to something unexpected and overriding the one you have set. You can modify configure to have the right directory in its PATH.
 
Old 05-08-2009, 01:26 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
With Xandro couldn't you just install GCC using apt-get ?

http://polythinker.blogspot.com/2008...lkthrough.html
 
Old 05-08-2009, 02:47 PM   #4
nchettle
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
When I run "which gcc" nothing happens, it just gives me the command prompt. I've looked at the configure file - how should I change it?
 
Old 05-08-2009, 02:51 PM   #5
nchettle
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I've already tried apt-get and it says that gcc is "not available" and that it "doesn't have a candidate for its installation" (translated from spanish)
 
Old 05-08-2009, 03:01 PM   #6
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,870
Blog Entries: 14

Rep: Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112Reputation: 1112
Try typing "find / -name gcc" to see if you find the command.
 
Old 05-08-2009, 03:07 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Quote:
Originally Posted by nchettle View Post
I've already tried apt-get and it says that gcc is "not available" and that it "doesn't have a candidate for its installation" (translated from spanish)
Did you read the link I posted ?

Quote:
Installing GCC on Eee PC: A Walkthrough


After some googling I found the following method to get gcc-4.1.2 from a xandros repository.

First, add the following line in /etc/apt/sources.list

deb http://xnv4.xandros.com/xs2.0/pkg/ xs2.0-xn main

Next, update the list of available packages by

sudo apt-get update
sudo apt-get install xandros-archive-keyring


The second command is just to let the system accept the public key of the xandros repository. After that, install gcc and libc6-dev as follows

sudo apt-get install gcc
sudo apt-get install libc6-dev
 
Old 05-08-2009, 03:08 PM   #8
nchettle
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Yes, in /usr/lib/gcc and of course also in the directory which I downloaded version 4.4.0 into.
 
Old 05-08-2009, 03:11 PM   #9
nchettle
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
There is 1 file in a /usr/lib/gcc sub-directory called cc1
 
Old 05-09-2009, 12:38 PM   #10
nchettle
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
For Farslayer

Thank you. I did all that, but when I then tried to install the package which generated the original message about there being no acceptable C compiler in $PATH, I now get "C Compiler cannot create executables". Any ideas?
 
Old 05-09-2009, 12:52 PM   #11
Bradfirj92
LQ Newbie
 
Registered: Sep 2008
Distribution: CentOS 5 / Fedora Core 10
Posts: 18

Rep: Reputation: 0
Perhaps permissions are set so the compiler is unable to create the file?
 
Old 05-09-2009, 02:24 PM   #12
nchettle
LQ Newbie
 
Registered: Apr 2009
Posts: 10

Original Poster
Rep: Reputation: 0
For Bradfirj92

Do you mean that I should be root when I do the install?
 
  


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
no acceptable C compiler found in $path scottown Red Hat 12 04-09-2013 08:44 PM
No acceptable C compiler found in $PATH nchettle Linux - Software 3 05-09-2009 04:14 PM
no acceptable C compiler found in $path ashitaka Linux - Newbie 5 09-26-2008 10:39 PM
no acceptable C compiler found in $PATH sinXposed Linux - Software 4 08-10-2006 02:14 PM
no acceptable C compiler found in $PATH rhraz Mandriva 9 08-01-2006 07:03 PM


All times are GMT -5. The time now is 02:03 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