1,105,409 Community Members

no c compiler found in $PATH

Member Avatar
lewashby
Posting Pro
559 posts since Oct 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

I tried to run ./configure on a small program that the Linux book I'M reading instructed me to download and I got the error "no acceptable C compiler found in $PATH" I then tried to run atp-get install gcc, but then I got "unable to locate package gcc". Any dieas?

Member Avatar
mike_2000_17
21st Century Viking
4,073 posts since Jul 2010
Reputation Points: 2,253 [?]
Q&As Helped to Solve: 798 [?]
Skill Endorsements: 72 [?]
Moderator
Featured
Sponsor
 
1
 

Try to install build-essential (at least, in Ubuntu repos, I don't know if other debian distros have it too), it will install everything you need.

$ sudo apt-get install build-essential

Also, if you get the message "unable to locate package ..", then you should try to do a search for it:

$ sudo aptitude search gcc

It should list all packages that contain that word (like grep). It's possible that the package is named something else, like gcc-4.7 or something like that.

Member Avatar
lewashby
Posting Pro
559 posts since Oct 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
0
 

Thanks. It worked but it took me a while. I had to run apt-get update first. I alwasy forget that after I've just installed a new server. Since we're on the subject, why do simple apt-get commands not work until upate has been run?

Member Avatar
naphets
Junior Poster in Training
65 posts since Feb 2013
Reputation Points: 0 [?]
Q&As Helped to Solve: 4 [?]
Skill Endorsements: 0 [?]
 
0
 

apt-get update , Updates the "local database" of what is available (in the Terabtytes) on the clouds...
sudo apt-get install build-essential libc6-dev libbz2-dev check
Ubuntu lacks the above by default

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article