no acceptable c compiler

From: Garrett Gaston 
------------------------------------------------------
I tried to run ./configure on a small program that the Linux book I'M =0A=
reading instructed me to download and I got the error "no acceptable C =0A=
compiler found in $PATH" I then tried to run apt-get install gcc=2C but =0A=
then I got "unable to locate package gcc".  After running apt-get install g=
cc-4.6-base I got "gcc-4.6-base is already the newest version.".
This is Ubuntu server and the $PATH is:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

Any ideas?
 		 	   		  =

=============================================================== From: James Nylen ------------------------------------------------------ Try: sudo apt-get install build-essential If that doesn't work, post more of the log from ./configure.

=============================================================== From: Garrett Gaston ------------------------------------------------------ sudo apt-get install build-essential -> E: Unable to locate package build-essential Here's the output from my config.log file This file contains any messages produced by compilers while running configure=2C to aid debugging if configure makes a mistake. It was created by GNU Hello configure 2.3=2C which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure=20 ## --------- ## ## Platform. ## ## --------- ## hostname =3D ubuntu uname -m =3D i686 uname -r =3D 3.2.0-29-generic-pae uname -s =3D Linux uname -v =3D #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 /usr/bin/uname -p =3D unknown /bin/uname -X =3D unknown /bin/arch =3D unknown /usr/bin/arch -k =3D unknown /usr/convex/getsysinfo =3D unknown /usr/bin/hostinfo =3D unknown /bin/machine =3D unknown /usr/bin/oslevel =3D unknown /bin/universe =3D unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games ## ----------- ## ## Core tests. ## ## ----------- ## configure:1872: checking for a BSD-compatible install configure:1928: result: /usr/bin/install -c configure:1939: checking whether build environment is sane configure:1982: result: yes configure:2010: checking for a thread-safe mkdir -p configure:2049: result: /bin/mkdir -p configure:2062: checking for gawk configure:2078: found /usr/bin/gawk configure:2089: result: gawk configure:2100: checking whether make sets $(MAKE) configure:2125: result: no configure:2366: checking for gcc configure:2396: result: no configure:2463: checking for cc configure:2510: result: no configure:2566: checking for cl.exe configure:2596: result: no configure:2625: error: no acceptable C compiler found in $PATH See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac

=============================================================== From: William Wade ------------------------------------------------------ Which Ubuntu version? Make sure to have run "sudo apt-get update" recently.

=============================================================== From: Garrett Gaston ------------------------------------------------------ Don't know=2C latest version form ubutnu.com. Thanks=2C that worked. I alwa= ys forget that after installing a new server. From: willm.wade@gmail.com Date: Sun=2C 17 Feb 2013 13:30:51 -0500 To: chugalug@chugalug.org Subject: Re: [Chugalug] no acceptable c compiler Which Ubuntu version? Make sure to have run "sudo apt-get update" recently. =0A= =0A= =0A= =0A= =0A= sudo apt-get install build-essential -> E: Unable to locate package build-essential Here's the output from my config.log file This file contains any messages produced by compilers while =0A= =0A= running configure=2C to aid debugging if configure makes a mistake. It was created by GNU Hello configure 2.3=2C which was generated by GNU Autoconf 2.61. Invocation command line was $ ./configure=20 =0A= =0A= ## --------- ## ## Platform. ## ## --------- ## hostname =3D ubuntu uname -m =3D i686 uname -r =3D 3.2.0-29-generic-pae uname -s =3D Linux uname -v =3D #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 /usr/bin/uname -p =3D unknown =0A= =0A= /bin/uname -X =3D unknown /bin/arch =3D unknown /usr/bin/arch -k =3D unknown /usr/convex/getsysinfo =3D unknown /usr/bin/hostinfo =3D unknown /bin/machine =3D unknown /usr/bin/oslevel =3D unknown =0A= =0A= /bin/universe =3D unknown PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin PATH: /usr/games ## ----------- ## ## Core tests. ## =0A= =0A= ## ----------- ## configure:1872: checking for a BSD-compatible install configure:1928: result: /usr/bin/install -c configure:1939: checking whether build environment is sane configure:1982: result: yes =0A= =0A= configure:2010: checking for a thread-safe mkdir -p configure:2049: result: /bin/mkdir -p configure:2062: checking for gawk configure:2078: found /usr/bin/gawk configure:2089: result: gawk configure:2100: checking whether make sets $(MAKE) =0A= =0A= configure:2125: result: no configure:2366: checking for gcc configure:2396: result: no configure:2463: checking for cc configure:2510: result: no configure:2566: checking for cl.exe configure:2596: result: no =0A= =0A= configure:2625: error: no acceptable C compiler found in $PATH See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac

=============================================================== From: "Alex Smith (K4RNT)" ------------------------------------------------------ You can get both bleeding-edge and the LTS versions very their website. Your best bet would be to look at your /etc/apt/sources.list and see what it specifies the Ubuntu release to be, they'll be referred to as code names.

=============================================================== From: Stephen Alfors ------------------------------------------------------ You need more than just 'gcc-xxx-base' you'll want to get a package named 'gcc'. try something like: apt-get install gcc-4.6 or apt-get install gcc (on debian gcc links to the latest version, gcc-4.4/gcc-4.6 would link to the C compiler for version 4.4 or 4.6) gcc-xxx-base usually only includes the core parts of the gcc toolchain. gcc/g++/g77/... will contain the actual language-specific compiler parts which is what the configure script is looking for. On Sun, Feb 17, 2013 at 1:57 PM, Alex Smith (K4RNT) wrote: