LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to find gcc (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-find-gcc-492704/)

mohtasham1983 10-15-2006 07:18 PM

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.

I would be glad if you help me.
thanks

mohtasham1983 10-15-2006 07:26 PM

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
/var/lib/dpkg/info/gcc-3.3-base.list
/var/lib/dpkg/info/gcc-3.3-base.md5sums
/var/lib/dpkg/info/gcc-4.0-base.list
/var/lib/dpkg/info/gcc-4.0-base.md5sums
/var/lib/dpkg/info/gcc-4.0-base.postinst
/var/lib/dpkg/info/libgcc1.list
/var/lib/dpkg/info/libgcc1.md5sums
/var/lib/dpkg/info/libgcc1.postinst
/var/lib/dpkg/info/libgcc1.postrm
/var/lib/dpkg/info/libgcc1.shlibs
/lib/libgcc_s.so.1
/usr/lib/gcc
/usr/lib/gcc/i486-linux-gnu
/usr/lib/gcc/i486-linux-gnu/4.0.3
/usr/lib/gcc/i486-linux-gnu/4.0.3/include
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/mcpp_gcc40_predef_old.h
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/mcpp_gcc40_predef_std.h
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/mcpp_gxx40_predef_old.h
/usr/lib/gcc/i486-linux-gnu/4.0.3/include/mcpp_gxx40_predef_std.h
/usr/lib/openoffice/program/libcomphelp4gcc3.so
/usr/lib/openoffice/program/libcppuhelpergcc3.so.3
/usr/lib/openoffice/program/libgcc3_uno.so
/usr/lib/openoffice/program/libi18nregexpgcc3.so
/usr/lib/openoffice/program/libi18nutilgcc3.so
/usr/lib/openoffice/program/libjvmaccessgcc3.so.3
/usr/lib/openoffice/program/libsalhelpergcc3.so.3
/usr/lib/openoffice/program/libucbhelper3gcc3.so
/usr/lib/openoffice/program/libuno_cppuhelpergcc3.so.3
/usr/lib/openoffice/program/libuno_salhelpergcc3.so.3
/usr/lib/openoffice/program/libvos3gcc3.so
/usr/lib/libgccpp.so.1
/usr/lib/libgccpp.so.1.0.2
/usr/lib/libstlport_gcc.so.4.6
/usr/share/doc/gcc-3.3-base
/usr/share/doc/gcc-3.3-base/README.Debian
/usr/share/doc/gcc-3.3-base/TODO.Debian
/usr/share/doc/gcc-3.3-base/changelog.Debian.gz
/usr/share/doc/gcc-3.3-base/changelog.gz
/usr/share/doc/gcc-3.3-base/copyright
/usr/share/doc/gcc-4.0-base
/usr/share/doc/gcc-4.0-base/.changelog.Debian.gz
/usr/share/doc/gcc-4.0-base/.copyright
/usr/share/doc/gcc-4.0-base/README.Debian.gz
/usr/share/doc/gcc-4.0-base/TODO.Debian
/usr/share/doc/gcc-4.0-base/changelog.Debian.gz
/usr/share/doc/gcc-4.0-base/changelog.gz
/usr/share/doc/gcc-4.0-base/copyright
/usr/share/doc/libgcc1
/usr/share/lintian/overrides/libgcc1

I am not sure if this is the right gcc I need for compiling

scott_R 10-15-2006 08:33 PM

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 10-16-2006 06:51 AM

Go to System/Administration/Synaptic Package Manager. Do a search for "gcc", install gcc and the libs that go with it from there.

czechknight93 10-16-2006 09:26 AM

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.

Penguin of Wonder 10-16-2006 09:28 AM

Yeah, this is one of the resons I left Ubuntu.

bernied 10-16-2006 09:33 AM

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.

icosohedran20 10-17-2006 12:16 PM

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.

icosohedran20 10-17-2006 12:24 PM

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.