LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-09-2011, 05:21 AM   #1
parashuram2011
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
sudo apt-get install build-essential


hello LQ
I want to install some GNU c++ compiler. to install it when I give the following commandline

sudo apt-get install build-essential
its giving

Reading package lists... Done
Building dependency tree
Reading state information... 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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential: Depends: g++ (>= 4:4.3.1) but it is not going to be installed

when I enter
sudo apt-get install g++
its again gives

Reading package lists... Done
Building dependency tree
Reading state information... 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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
g++: Depends: gcc (>= 4:4.3.2-2) but it is not going to be installed
Depends: g++-4.3 (>= 4.3.2-1) but it is not going to be installed
Depends: gcc-4.3 (>= 4.3.2-1) but it is not going to be installed
E: Broken packages

even after running 'apt-get update' retrying it gives same errors

than later i checked my /etc/apt/source.list
it is as follows

deb http://ftp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.debian.org/debian/ lenny main contrib non-free

what may be missing any help????

regards
parashuram
 
Old 08-09-2011, 06:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
'build-essential' is required for building <source-packages>.deb.
It's a 5 kB dummy package that installs g++, make (+ source build packages).
http://packages.ubuntu.com/natty/build-essential
Quote : ".. you don't need this package."

This will install the real essential build tools :

sudo apt-get update &&
sudo apt-get install g++ make autoconf automake libtool flex bison

( You missed out the 'apt-get update' part.)

..
 
1 members found this post helpful.
Old 08-09-2011, 11:54 PM   #3
parashuram2011
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks for replay

now I am able to download data i.e installable archives but after fetching data its giving some error.

output of

sudo apt-get update &&
sudo apt-get install g++ make autoconf automake libtool flex bison

..............................
.............................
Need to get 53.1MB of archives.
After this operation, 79.4MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.nl.debian.org testing/main perl-base 5.12.4-2 [1455kB]
Get:2 http://ftp.nl.debian.org testing/main libtext-charwidth-perl 0.04-7 [12.5kB]
Get:3 http://ftp.nl.debian.org testing/main libcompress-raw-bzip2-perl 2.037-1 [34.4kB]
Get:4 http://ftp.nl.debian.org testing/main liblocale-gettext-perl 1.05-7 [22.6kB]
Get:5 http://ftp.nl.debian.org unstable/main libc-bin 2.13-16 [1024kB]
Get:6 http://ftp.nl.debian.org unstable/main libc6 2.13-16 [3901kB]
Get:7 http://ftp.nl.debian.org unstable/main multiarch-support 2.13-16 [140kB]
Get:8 http://ftp.nl.debian.org unstable/main libdb5.1 5.1.25-11 [753kB]
Get:9 http://ftp.nl.debian.org testing/main perl 5.12.4-2 [3564kB]
Get:10 http://ftp.nl.debian.org testing/main perl-modules 5.12.4-2 [4786kB]
Get:11 http://ftp.nl.debian.org testing/main libio-compress-bzip2-perl 2.037-1 [14.2kB]
Get:12 http://ftp.nl.debian.org testing/main libtext-iconv-perl 1.7-4 [19.2kB]
Get:13 http://ftp.nl.debian.org testing/main make 3.81-8.1 [392kB]
Get:14 http://ftp.nl.debian.org testing/main pkg-config 0.26-1 [58.7kB]
Get:15 http://ftp.nl.debian.org unstable/main libc6-dev 2.13-16 [4875kB]
Get:16 http://ftp.nl.debian.org unstable/main libc-dev-bin 2.13-16 [207kB]
Get:17 http://ftp.nl.debian.org unstable/main gcc-4.6-base 4.6.1-6 [134kB]
Get:18 http://ftp.nl.debian.org unstable/main libgcc1 1:4.6.1-6 [54.2kB]
Get:19 http://ftp.nl.debian.org unstable/main libstdc++6 4.6.1-6 [352kB]
Get:20 http://ftp.nl.debian.org testing/main m4 1.4.16-2 [254kB]
Get:21 http://ftp.nl.debian.org testing/main flex 2.5.35-10 [314kB]
Get:22 http://ftp.nl.debian.org unstable/main libgomp1 4.6.1-6 [27.3kB]
Get:23 http://ftp.nl.debian.org unstable/main libquadmath0 4.6.1-6 [195kB]
Get:24 http://ftp.nl.debian.org unstable/main libclass-isa-perl 0.36-2 [12.1kB]
Get:25 http://ftp.nl.debian.org unstable/main libswitch-perl 2.16-2 [21.0kB]
Get:26 http://ftp.nl.debian.org testing/main autoconf 2.68-1 [804kB]
Get:27 http://ftp.nl.debian.org testing/main automake 1:1.11.1-1 [611kB]
Get:28 http://ftp.nl.debian.org unstable/main binutils 2.21.53.20110805-1 [4586kB]
Get:29 http://ftp.nl.debian.org testing/main libgmp10 2:5.0.1+dfsg-7 [258kB]
Get:30 http://ftp.nl.debian.org testing/main libgmpxx4ldbl 2:5.0.1+dfsg-7 [19.9kB]
Get:31 http://ftp.nl.debian.org testing/main libppl9 0.11.2-4 [535kB]
Get:32 http://ftp.nl.debian.org testing/main libpwl5 0.11.2-4 [29.7kB]
Get:33 http://ftp.nl.debian.org testing/main libppl-c4 0.11.2-4 [1520kB]
Get:34 http://ftp.nl.debian.org testing/main libcloog-ppl0 0.15.9-3 [60.0kB]
Get:35 http://ftp.nl.debian.org testing/main libmpfr4 3.0.1-5 [479kB]
Get:36 http://ftp.nl.debian.org testing/main libmpc2 0.9-3 [38.4kB]
Get:37 http://ftp.nl.debian.org unstable/main cpp-4.6 4.6.1-6 [4616kB]
Get:38 http://ftp.nl.debian.org testing/main cpp 4:4.6.1-2 [15.9kB]
Get:39 http://ftp.nl.debian.org unstable/main gcc-4.6 4.6.1-6 [7343kB]
Get:40 http://ftp.nl.debian.org testing/main gcc 4:4.6.1-2 [5010B]
Get:41 http://ftp.nl.debian.org unstable/main libstdc++6-4.6-dev 4.6.1-6 [1642kB]
Get:42 http://ftp.nl.debian.org unstable/main g++-4.6 4.6.1-6 [6766kB]
Get:43 http://ftp.nl.debian.org unstable/main g++-4.6 4.6.1-6 [6766kB]
Get:44 http://ftp.nl.debian.org testing/main g++ 4:4.6.1-2 [1370B]
Get:45 http://ftp.nl.debian.org testing/main libltdl7 2.4-3 [345kB]
Get:46 http://ftp.nl.debian.org testing/main libltdl-dev 2.4-3 [202kB]
Get:47 http://ftp.nl.debian.org testing/main libpod-plainer-perl 1.03-1 [6416B]
Get:48 http://ftp.nl.debian.org testing/main libtool 2.4-3 [609kB]
Fetched 52.5MB in 17min24s (50.3kB/s)
E: Internal Error, Could not perform immediate configuration (2) on perl

any idea why this error ???

thanks
parashuram
 
Old 08-10-2011, 12:06 AM   #4
jdkaye
Senior Member
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 4,469

Rep: Reputation: Disabled
Maybe bug #548915 is your problem.
They suggest the following:
Quote:
This should be fixed by liblocale-gettext-perl 1.05-6, see #548860 et al.
This and many many other solutions were obtained by googling
Code:
apt-get "Could not perform immediate configuration (2) on perl"
.
Googling should always be your second step (after searching LQ first of course. )
ciao,
jdk
 
0 members found this post helpful.
  


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
sudo apt-get install aarsh Suse/Novell 15 05-24-2011 08:26 PM
LXer: sudo apt-get install sl is Fun! LXer Syndicated Linux News 0 07-16-2010 08:00 AM
sudo apt-get build-dep xserver-xorg-driver-ati Ramixx Linux - Newbie 1 06-28-2010 09:23 PM
$sudo apt-get install... how do you know the name? Delpheno Linux - Newbie 9 05-03-2010 12:28 AM
Ubuntu 7.04 - Error Apt-Getting Build-Essential Peatmoss Ubuntu 5 12-11-2007 06:42 PM


All times are GMT -5. The time now is 02:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration