The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Debian
.
google unix.com



Debian Debian GNU/Linux is a free distribution of the GNU/Linux operating system.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to install dbx in sun box sridhusha SUN Solaris 1 10-04-2007 08:09 AM
Could I install HP-UX 11.11 on a PC? adrian262 UNIX for Dummies Questions & Answers 4 06-12-2007 06:00 AM
Oracle 9i install: Error in invoking target install of makefile chris2005 HP-UX 5 02-21-2007 09:45 AM
Help to install HP-UX Andrey Malishev UNIX for Dummies Questions & Answers 8 12-09-2005 03:19 PM
Need help to install cc (ucc) SCO 5.0.6 pbo2005 High Level Programming 1 02-22-2005 04:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-25-2009
nottrobin nottrobin is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 6
Can't install g++

Yo chaps.

So. While I was trying to compile lighttpd from source (first time I've ever been so brave) I ran across this error:
"C compiler cannot create executables"

I Googled around a bit and found someone suggesting that the error came from not having g++ installed. Which makes sense.

So I tried:

Code:
> apt-get install g++
...
The following packages have unmet dependencies.
  g++: Depends: g++-4.1 (>= 4.1.1-2) but it is not going to be installed

If I then tried to install g++-4.1 and got a similar error, and traced it right down to having the wrong version of libc6:


Code:
g++-4.1: Depends: libstdc++6-4.1-dev (= 4.1.1-21) but it is not going to be installed
....
libstdc++6-4.1-dev: Depends: libc6-dev (>= 2.3.6-7) but it is not going to be installed
...
libc6-dev: Depends: libc6 (= 2.3.6.ds1-13etch8) but 2.7-18 is to be installed

Now. If it was a less important package I'd just remove it and then re-install it. But to do that with libc6 I'd have to uninstall about 30 system packages including apt, which I'm not that inclined to do.

Does anyone know of a way around this?

Oh by the way, here's my apt sources list (might be relevant):


Code:
deb ftp://ftp.uk.debian.org/debian/ stable main contrib non-free
deb-src ftp://ftp.uk.debian.org/debian/ stable main

deb http://security.debian.org/ stable/updates main

Cheers,
Robin
  #2 (permalink)  
Old 01-27-2009
otheus's Avatar
otheus otheus is offline Forum Staff  
Moderator ala Mode
  
 

Join Date: Feb 2007
Location: Innsbruck, Austria
Posts: 1,893
Yo, indeed, my good fellow.

You should be able to upgrade libc6 without uninstalling. Even on debian.
  #3 (permalink)  
Old 01-27-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,972
This should do it:
Code:
aptitude update
aptitude upgrade
aptitude install g++

By the way, I suggest changing the 'stable' keyword in your sources.list to the release you use (woody/sarge/etch). It happened before that packages got broken because of this when a new release got out.
  #4 (permalink)  
Old 03-13-2009
myle myle is offline
Registered User
  
 

Join Date: Mar 2008
Location: Greece
Posts: 16
Indeed, and it might be the case here, as well.
Lenny was recently released.

...You could also try:


Code:
apt-get update
apt-get upgrade
apt-get install build-essential

Instead of apt-get, you can use aptitude, if aptitude is the package manager that you prefer.

build-essential is a metapackage which includes several useful libraries.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0