Errors on installing build-essential.

I'm not sure if this is the right place, and I'm sorry if this has already been asked before, but:

I recently tried installing build-essential in order to enable compiling from source, but I receive this error message:

Quote:

debian-baux:/home/bacher# apt-get install build-essential
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential: Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: g++ (>= 4:4.1.1) but it is not going to be installedE: Broken packages
debian-baux:/home/bacher#

I'm a little bewildered as to where to go from here. I'm pretty new to linux, so please bear with me.

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Errors on installing build-essential.

If you look at the package dependencies:

apt-cache show build-essential | grep Depend

Depends: libc6-dev | libc-dev, gcc (>= 4:4.1.1), g++ (>= 4:4.1.1), make, dpkg-dev (>= 1.13.5)

So the report you get is complaining that you have not installed libc6-dev or libc-dev; the package manager will not make a decision for you; you need to install that yourself.

The same goes for g++ --- the dependency states 4.1.1 or greater --- once again, the package manager will not make a decision.

I'd suggest installing the same version of g++ as the currently installed gcc; to find out what gcc version is installed:

gcc -v

To see what versions of g++ are available:

apt-cache search g++|grep ^g++

SO - install the appropriate libc6-dev and g++ as requested, then try to install 'build-essential' again.

g++ is pretty useless without the libstdc++, so you may check the libstdc++ dependency of your installed g++ package and install the appropriate libstdc++..-dev package:

apt-cache search libstdc++ | grep dev

Syndicate content