GCC not working

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Post Reply
Baby Hen
Posts: 1
Joined: Thu Aug 07, 2014 13:47

GCC not working

Post by daves.toolroom » Thu Aug 07, 2014 14:05

I have just installed Sabayon and started experimenting, and trying to install some packages.
For some reason, GCC seems to not work - and this is causing a problem with some package installations using emerge.

[email protected] ~ $ gcc
bash: gcc: command not found
[email protected] ~ $ echo $PATH

Here is an example of a failed installation:
# emerge libbtbb
Calculating dependencies... done!

!!! The following installed packages are masked:
- www-plugins/chrome-binary-plugins-36.0.1985.125_p1::gentoo (masked by: google-chrome license(s))
A copy of the 'google-chrome' license is located at '/usr/portage/licenses/google-chrome'.

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

>>> Verifying ebuild manifests

>>> Emerging (1 of 12) sys-devel/bison-3.0.2
* bison-3.0.2.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking bison-3.0.2.tar.xz to /var/tmp/portage/sys-devel/bison-3.0.2/work
>>> Source unpacked in /var/tmp/portage/sys-devel/bison-3.0.2/work
>>> Preparing source in /var/tmp/portage/sys-devel/bison-3.0.2/work/bison-3.0.2 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-devel/bison-3.0.2/work/bison-3.0.2 ...
* econf: updating bison-3.0.2/build-aux/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating bison-3.0.2/build-aux/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-silent-rules --disable-dependency-tracking --enable-nls
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... no
checking for gcc... no
checking for x86_64-pc-linux-gnu-cc... no
checking for cc... no
checking for x86_64-pc-linux-gnu-cl.exe... no
checking for cl.exe... no
configure: error: in `/var/tmp/portage/sys-devel/bison-3.0.2/work/bison-3.0.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

Any suggestions ?

Sagely Hen
Posts: 1648
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: GCC not working

Post by Stupot » Thu Aug 07, 2014 14:55

Install gcc?

Code: Select all

# equo install gcc
Sabayon has two packages, base-gcc and gcc. base-gcc is installed by default and it contains a lot of libraries used by various different applications, but not the actually binary gcc application. The gcc package has that, so simply installing the gcc package should be what you're looking for.

Also, is there any reason you are using portage to install bison as opposed to the entropy version? Are you planning on running entirely off of portage? Sabayon's default package manager is entropy (equo being the command line utility). I suggest looking into that and giving it a try instead of portage unless you have your heart set on using portage.

User avatar
Sagely Hen
Posts: 1856
Joined: Fri Nov 16, 2007 1:15
Location: Ribeirão Preto City, São Paulo State, Brazil

Re: GCC not working

Post by albfneto » Fri Aug 08, 2014 18:16

if the preceeding procedure, install GCC, is not sufficient, after carried it, try these commands:

Code: Select all

$ gcc-config -l (and see the number of the newer GCC version)
# gcc-config number_of_the_latest_version
$ binutils-config -l ((and see the number of the newer binutils version)
# binutils number_of_the_latest_version_of_binutils
[email protected]
Favorite Distros: Sabayon, Gentoo, Mageia and OpenSUSE

Post Reply