Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408
Rep:
unable to find gcc
Hi guys,
I have recently installed ubuntu 6.06 which was pretty easy to install.
Now i m going to install a program from source. I have extracted zip file and when I want to configure it i get following error:
Code:
root@mohi-desktop:/usr/local/mico# ./configure
loading cache ./config.cache
checking for extra include and lib directories...
checking host system type... i686-pc-linux-gnuoldld
checking target system type... i686-pc-linux-gnuoldld
checking build system type... i686-pc-linux-gnuoldld
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
gcc is installed by default on this version of ubuntu and I am able to see it from synaptic.
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
Are you sure you installed gcc, or perhaps just the docs? You should have gcc entries in /usr/bin or similar directory. You might want to reinstall it and see what happens, if you are using unstable, there might have been a bad update. Something is definitely wrong though, because 'gcc -v' should be able to be run from pretty much any distro on the planet.
Also, check your path and make sure your system knows where to look for programs, but if locate doesn't have anything in /bin or /usr/bin, it's likely it's not installed properly.
echo $PATH
EDIT: Actually, now that I hit post, it looks like openoffice or something needs a certain gcc library to run, and that's all that got installed. Or perhaps you need to install gcc-dev or something. Haven't spent much time with Ubuntu, sorry.
icosohedran20 is correct. Ubuntu does NOT come with gcc installed. You have to actually go to the Synaptic PAckage Manager and install it there from the Ubuntu CD. I was a little upset when I thought that Ubuntu didn't come with the gcc compiler. Then, I found that it just wasn't installed after reading a post on LQ.
The package to install is called something like 'build-essentials'. It will install gcc, glibc, the pre-compiler (I don't know either) and a bunch of other stuff. If you just install gcc, you may find other bits missing.
I haven't had any problems as of yet with anything being missing but that might be a good idea for me too. It's possible though that I have needed to install it at some point, have done so, and forgotten about it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.