LinuxQuestions.org
Help answer threads with 0 replies.
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 10-15-2006, 07:18 PM   #1
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Rep: Reputation: 30
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
 
Old 10-15-2006, 07:26 PM   #2
mohtasham1983
Member
 
Registered: Apr 2005
Location: San Jose
Distribution: Fedora 3,4- Ubuntu 6.06 to 8.10, Gentoo and Arch
Posts: 408

Original Poster
Rep: Reputation: 30
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
 
Old 10-15-2006, 08:33 PM   #3
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
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.

Last edited by scott_R; 10-15-2006 at 08:36 PM.
 
Old 10-16-2006, 06:51 AM   #4
icosohedran20
LQ Newbie
 
Registered: Jun 2006
Location: Ann Arbor, MI
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
Go to System/Administration/Synaptic Package Manager. Do a search for "gcc", install gcc and the libs that go with it from there.
 
Old 10-16-2006, 09:26 AM   #5
czechknight93
Member
 
Registered: Aug 2003
Location: Weatherford, OK
Distribution: openSUSE 10.1
Posts: 95

Rep: Reputation: 15
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.
 
Old 10-16-2006, 09:28 AM   #6
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Yeah, this is one of the resons I left Ubuntu.
 
Old 10-16-2006, 09:33 AM   #7
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
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.
 
Old 10-17-2006, 12:16 PM   #8
icosohedran20
LQ Newbie
 
Registered: Jun 2006
Location: Ann Arbor, MI
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
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.
 
Old 10-17-2006, 12:24 PM   #9
icosohedran20
LQ Newbie
 
Registered: Jun 2006
Location: Ann Arbor, MI
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
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
 
  


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
GCC 4.0.2 Chroot Build Unable to Find Headers Kenji Miyamoto Linux From Scratch 5 06-29-2006 03:34 AM
Unable to downgrade gcc package cherif SUSE / openSUSE 3 06-01-2006 10:45 AM
unable tu upgrade gcc on FC4 lcornea Linux - Newbie 5 01-27-2006 06:48 AM
unable to install gcc-2.96 vijaysh Debian 5 01-02-2005 07:41 AM
Unable to install GCC from tar NRHBasher Red Hat 2 03-11-2004 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 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
Open Source Consulting | Domain Registration