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 I would be glad if you help me. thanks |
according to synaptic gcc is installed on my machine but when I type gcc in terminal I don't see anything.
I even tried locate gcc like this: Code:
root@mohi-desktop:/usr/local/mico# locate gcc |
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. |
Go to System/Administration/Synaptic Package Manager. Do a search for "gcc", install gcc and the libs that go with it from there.
|
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.
|
Yeah, this is one of the resons I left Ubuntu.
|
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.
|
To get the package bernied mentioned you need to open a terminal and type (or cut and paste) the following:
sudo apt-get install build-essential |
All times are GMT -5. The time now is 11:05 AM. |