[Chugalug] no acceptable c compiler

Stephen Alfors stephen.alfors at gmail.com
Wed Feb 20 01:44:46 UTC 2013


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)
<shadowhunter at gmail.com>wrote:

> 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.
>
>
> On Sun, Feb 17, 2013 at 1:47 PM, Garrett Gaston <garrett85 at hotmail.com>
> wrote:
> > Don't know, latest version form ubutnu.com. Thanks, that worked. I
> always
> > forget that after installing a new server.
> >
> > ________________________________
> > From: willm.wade at gmail.com
> > Date: Sun, 17 Feb 2013 13:30:51 -0500
> >
> > To: chugalug at chugalug.org
> > Subject: Re: [Chugalug] no acceptable c compiler
> >
> > Which Ubuntu version?
> >
> > Make sure to have run "sudo apt-get update" recently.
> >
> >
> > On Sun, Feb 17, 2013 at 12:15 PM, Garrett Gaston <garrett85 at hotmail.com>
> > wrote:
> >
> > 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, to aid debugging if configure makes a mistake.
> >
> > It was created by GNU Hello configure 2.3, which was
> > generated by GNU Autoconf 2.61.  Invocation command line was
> >
> >   $ ./configure
> >
> > ## --------- ##
> > ## Platform. ##
> > ## --------- ##
> >
> > hostname = ubuntu
> > uname -m = i686
> > uname -r = 3.2.0-29-generic-pae
> > uname -s = Linux
> > uname -v = #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012
> >
> > /usr/bin/uname -p = unknown
> > /bin/uname -X     = unknown
> >
> > /bin/arch              = unknown
> > /usr/bin/arch -k       = unknown
> > /usr/convex/getsysinfo = unknown
> > /usr/bin/hostinfo      = unknown
> > /bin/machine           = unknown
> > /usr/bin/oslevel       = unknown
> > /bin/universe          = 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_cv_env_CC_set=
> > ac_cv_env_CC_value=
> > ac_cv_env_CFLAGS_set=
> > ac_cv_env_CFLAGS_value=
> > ac_cv_env_CPPFLAGS_set=
> > ac_cv_env_CPPFLAGS_value=
> > ac_cv_env_CPP_set=
> > ac_cv_env_CPP_value=
> > ac_cv_env_LDFLAGS_set=
> > ac_cv_env_LDFLAGS_value=
> > ac_cv_env_LIBS_set=
> > ac_cv_env_LIBS_value=
> > ac_cv_env_build_alias_set=
> > ac_cv_env_build_alias_value=
> > ac_cv_env_host_alias_set=
> > ac_cv_env_host_alias_value=
> > ac_cv_env_target_alias_set=
> > ac_cv_env_target_alias_value=
> > ac_cv_path_install='/usr/bin/install -c'
> > ac_cv_path_mkdir=/bin/mkdir
> > ac_cv_prog_AWK=gawk
> > ac_cv_prog_make_make_set=no
> >
> > ## ----------------- ##
> > ## Output variables. ##
> > ## ----------------- ##
> >
> > ACLOCAL='${SHELL} /usr/local/src/hello-2.3/build-aux/missing --run
> > aclocal-1.10'
> > AMDEPBACKSLASH=''
> > AMDEP_FALSE=''
> > AMDEP_TRUE=''
> > AMTAR='${SHELL} /usr/local/src/hello-2.3/build-aux/missing --run tar'
> > AUTOCONF='${SHELL} /usr/local/src/hello-2.3/build-aux/missing --run
> > autoconf'
> > AUTOHEADER='${SHELL} /usr/local/src/hello-2.3/build-aux/missing --run
> > autoheader'
> > AUTOMAKE='${SHELL} /usr/local/src/hello-2.3/build-aux/missing --run
> > automake-1.10'
> > AWK='gawk'
> > CC=''
> > CCDEPMODE=''
> > CFLAGS=''
> > CPP=''
> > CPPFLAGS=''
> > CYGPATH_W='echo'
> > DEFS=''
> > DEPDIR=''
> > ECHO_C=''
> > ECHO_N='-n'
> > ECHO_T=''
> > EGREP=''
> > EXEEXT=''
> > GETOPT_H=''
> > GL_COND_LIBTOOL_FALSE=''
> > GL_COND_LIBTOOL_TRUE=''
> > GMSGFMT=''
> > GMSGFMT_015=''
> > GNULIB_CHOWN=''
> > GNULIB_DUP2=''
> > GNULIB_FCHDIR=''
> > GNULIB_FTRUNCATE=''
> > GNULIB_GETCWD=''
> > GNULIB_GETLOGIN_R=''
> > GNULIB_GETSUBOPT=''
> > GNULIB_LCHOWN=''
> > GNULIB_LSEEK=''
> > GNULIB_MKDTEMP=''
> > GNULIB_MKSTEMP=''
> > GNULIB_READLINK=''
> > GNULIB_SLEEP=''
> > GREP=''
> > HAVE_DECL_GETLOGIN_R=''
> > HAVE_DUP2=''
> > HAVE_FTRUNCATE=''
> > HAVE_GETSUBOPT=''
> > HAVE_ISWCNTRL=''
> > HAVE_MKDTEMP=''
> > HAVE_READLINK=''
> > HAVE_SLEEP=''
> > HAVE_UNISTD_H=''
> > HAVE_WCHAR_H=''
> > HAVE_WCTYPE_H=''
> > HAVE_WINT_T=''
> > HAVE__BOOL=''
> > HELP2MAN=''
> > INCLUDE_NEXT=''
> > INSTALL_DATA='${INSTALL} -m 644'
> > INSTALL_PROGRAM='${INSTALL}'
> > INSTALL_SCRIPT='${INSTALL}'
> > INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
> > INTLLIBS=''
> > INTL_MACOSX_LIBS=''
> > LDFLAGS=''
> > LIBGNU_LIBDEPS=''
> > LIBGNU_LTLIBDEPS=''
> > LIBICONV=''
> > LIBINTL=''
> > LIBOBJS=''
> > LIBS=''
> > LTLIBICONV=''
> > LTLIBINTL=''
> > LTLIBOBJS=''
> > MAKEINFO='${SHELL} /usr/local/src/hello-2.3/build-aux/missing --run
> > makeinfo'
> > MSGFMT=''
> > MSGFMT_015=''
> > MSGMERGE=''
> > NEXT_STDLIB_H=''
> > NEXT_UNISTD_H=''
> > NEXT_WCHAR_H=''
> > NEXT_WCTYPE_H=''
> > OBJEXT=''
> > PACKAGE='hello'
> > PACKAGE_BUGREPORT='bug-hello at gnu.org'
> > PACKAGE_NAME='GNU Hello'
> > PACKAGE_STRING='GNU Hello 2.3'
> > PACKAGE_TARNAME='hello'
> > PACKAGE_VERSION='2.3'
> > PATH_SEPARATOR=':'
> > POSUB=''
> > RANLIB=''
> > REPLACE_CHOWN=''
> > REPLACE_FCHDIR=''
> > REPLACE_GETCWD=''
> > REPLACE_LCHOWN=''
> > REPLACE_LSEEK=''
> > REPLACE_MKSTEMP=''
> > SET_MAKE='MAKE=make'
> > SHELL='/bin/bash'
> > STDBOOL_H=''
> > STRIP=''
> > USE_NLS=''
> > VERSION='2.3'
> > WCHAR_H=''
> > WCTYPE_H=''
> > XGETTEXT=''
> > XGETTEXT_015=''
> > ac_ct_CC=''
> > am__fastdepCC_FALSE=''
> > am__fastdepCC_TRUE=''
> > am__include=''
> > am__isrc=''
> > am__leading_dot='.'
> > am__quote=''
> > am__tar='${AMTAR} chof - "$$tardir"'
> > am__untar='${AMTAR} xf -'
> > bindir='${exec_prefix}/bin'
> > build=''
> > build_alias=''
> > build_cpu=''
> > build_os=''
> > build_vendor=''
> > datadir='${datarootdir}'
> > datarootdir='${prefix}/share'
> > docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
> > dvidir='${docdir}'
> > exec_prefix='NONE'
> > gl_LIBOBJS=''
> > gl_LTLIBOBJS=''
> > host=''
> > host_alias=''
> > host_cpu=''
> > host_os=''
> > host_vendor=''
> > htmldir='${docdir}'
> > includedir='${prefix}/include'
> > infodir='${datarootdir}/info'
> > install_sh='$(SHELL) /usr/local/src/hello-2.3/build-aux/install-sh'
> > libdir='${exec_prefix}/lib'
> > libexecdir='${exec_prefix}/libexec'
> > localedir='${datarootdir}/locale'
> > localstatedir='${prefix}/var'
> > mandir='${datarootdir}/man'
> > mkdir_p='/bin/mkdir -p'
> > oldincludedir='/usr/include'
> > pdfdir='${docdir}'
> > prefix='NONE'
> > program_transform_name='s,x,x,'
> > psdir='${docdir}'
> > sbindir='${exec_prefix}/sbin'
> > sharedstatedir='${prefix}/com'
> > sysconfdir='${prefix}/etc'
> > target_alias=''
> >
> > ## ----------- ##
> > ## confdefs.h. ##
> > ## ----------- ##
> >
> > #define PACKAGE_NAME "GNU Hello"
> > #define PACKAGE_TARNAME "hello"
> > #define PACKAGE_VERSION "2.3"
> > #define PACKAGE_STRING "GNU Hello 2.3"
> > #define PACKAGE_BUGREPORT "bug-hello at gnu.org"
> > #define PACKAGE "hello"
> > #define VERSION "2.3"
> >
> > configure: exit 1
> >
> > ________________________________
> > Date: Sun, 17 Feb 2013 11:20:48 -0500
> > From: jnylen at gmail.com
> > To: chugalug at chugalug.org
> > Subject: Re: [Chugalug] no acceptable c compiler
> >
> >
> > Try:
> >
> > sudo apt-get install build-essential
> >
> > If that doesn't work, post more of the log from ./configure.
> >
> > On Sun, Feb 17, 2013 at 10:57 AM, Garrett Gaston <garrett85 at hotmail.com>
> > wrote:
> >
> > I tried to run ./configure on a small program that the Linux book I'M
> > reading instructed me to download and I got the error "no acceptable C
> > compiler found in $PATH" I then tried to run apt-get install gcc, but
> then I
> > got "unable to locate package gcc".  After running apt-get install
> > gcc-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?
> >
> > _______________________________________________
> > Chugalug mailing list
> > Chugalug at chugalug.org
> > http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
> >
> >
> >
> > _______________________________________________ Chugalug mailing list
> > Chugalug at chugalug.org
> http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
> >
> > _______________________________________________
> > Chugalug mailing list
> > Chugalug at chugalug.org
> > http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
> >
> >
> >
> > _______________________________________________ Chugalug mailing list
> > Chugalug at chugalug.org
> http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
> >
> > _______________________________________________
> > Chugalug mailing list
> > Chugalug at chugalug.org
> > http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
> >
>
>
>
> --
> " ' With the first link, the chain is forged. The first speech
> censured, the first thought forbidden, the first freedom denied,
> chains us all irrevocably.' Those words were uttered by Judge Aaron
> Satie as wisdom and warning... The first time any man's freedom is
> trodden on we’re all damaged." - Jean-Luc Picard, quoting Judge Aaron
> Satie, Star Trek: TNG episode "The Drumhead"
> - Alex Smith (K4RNT)
> - Dulles Technology Corridor (Chantilly/Ashburn/Dulles), Virginia USA
> _______________________________________________
> Chugalug mailing list
> Chugalug at chugalug.org
> http://chugalug.org/cgi-bin/mailman/listinfo/chugalug
>



-- 
PERL
-----------
World Domination Through Obscurity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://chugalug.org/pipermail/chugalug/attachments/20130219/ea97e02d/attachment-0001.html>


More information about the Chugalug mailing list