Sponsored Content
Full Discussion: Can't install g++
Operating Systems Linux Debian Can't install g++ Post 302280029 by nottrobin on Sunday 25th of January 2009 08:10:45 PM
Old 01-25-2009
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
 

8 More Discussions You Might Find Interesting

1. HP-UX

Install HP UX

Hey whats up all of you pro's i have one question for you im not to familiar with HP UX 11i, but i would like to load it on my home machine. I am sure this is a dumb question but is there any special hardware requirements. I have reloaded the sysem at my work on a L class 9000 well not exactly by... (9 Replies)
Discussion started by: bbutler3295
9 Replies

2. HP-UX

Oracle 9i install: Error in invoking target install of makefile

I receive an error while installing Oracle 9i: Error in invoking target install of makefile /opt/oracle/product/9.2.0/sqlplus/lib/ins_sqlplus.mk Furthermore: $ whoami oracle $ echo $ORACLE_HOME /opt/oracle/product/9.2.0 $ pwd /opt/oracle/product/9.2.0/sqlplus/lib $ ll total... (5 Replies)
Discussion started by: chris2005
5 Replies

3. Linux

install macbook pro fedora10 ???((<<if can install, how to install? >> ))

If may install can Tells everybody ??? (0 Replies)
Discussion started by: kzBSD
0 Replies

4. Solaris

Solaris 10 install dvd drive boots, but not recoginized by install process

I am trying to build a Sun Ultra 10 with solaris 10. This computer is one of a collection that was donated to the non-profic company I work for. All media was wiped before I recieved them, so I am starting from stratch. I downloaded the Solaris 10 ISO and burned a DVD. The computer came with a... (4 Replies)
Discussion started by: gwillhight
4 Replies

5. Red Hat

CentOS 6.1 base install (like FreeBSD base install)?

Hello, What is the simplest way to install CentOS 6.1 with console base-system only using official LiveDVD image on VirtualBox machine? I'd like to get simplest console with network support like FreeBSD base installation. Then, install services which I need. The installer jest extracts the... (2 Replies)
Discussion started by: newbie_develope
2 Replies

6. Red Hat

Install Red Hat 4.2 (Not Enterprise) from install tree

Hi guys I would like to install Red Hat Linux 4.2 on my old box (pIII). However there is a problem: i can't find the .iso image anywhere in the Net, all the material that i've found is (i think) an install tree of the OS. It will be possible for me to install the OS from that install tree? ... (3 Replies)
Discussion started by: mk2soldier
3 Replies

7. Fedora

Make check install and make all install

hi dear i want to know what is different between make check install and make all install? thanks in advane fereshte (3 Replies)
Discussion started by: komijani
3 Replies

8. AIX

Install software in another directory with smitty install

Hello, I would like to ask if someone knows if is possible to install sofware via smitty or installp in another directorie , or we have to accept the default location? i would like to intall in /opt folder , but smitty installed it in /usr Thanks in advance (4 Replies)
Discussion started by: prpkrk
4 Replies
APT_AUTH.CONF(5)							APT							  APT_AUTH.CONF(5)

NAME
apt_auth.conf - Login configuration file for APT sources and proxies DESCRIPTION
APT configuration files like sources.list(5) or apt.conf(5) need to be accessible for everyone using apt tools on the system to have access to all package-related information like the available packages in a repository. Login information needed to connect to a proxy or to download data from a repository on the other hand shouldn't always be accessible by everyone and can hence not be placed in a file with world-readable file permissions. The APT auth.conf file /etc/apt/auth.conf can be used to store login information in a netrc-like format with restrictive file permissions. NETRC-LIKE FORMAT The format defined here is similar to the format of the ~/.netrc file used by ftp(1) and similar programs interacting with servers. It is a simple token-based format with the following tokens being recognized; Unknown tokens will be ignored. Tokens may be separated by spaces, tabs or newlines. machine hostname[:port][/path] Entries are looked up by searching for the machine token matching the hostname of the URI apt needs login information for. Extending the netrc-format a portnumber can be specified. If no port is given the token matches for all ports. Similar the path is optional and only needed and useful if multiple repositories with different login information reside on the same server. A machine token with a path matches if the path in the URI starts with the path given in the token. Once a match is made, the subsequent tokens are processed, stopping when the end of file is reached or another machine token is encountered. login name The username to be used. password string The password to be used. EXAMPLE
Supplying login information for a user named apt with the password debian for the sources.list(5) entry deb http://example.org/debian stretch main could be done in the entry directly: deb http://apt:debian@example.org/debian stretch main Alternatively an entry like the following in the auth.conf file could be used: machine example.org login apt password debian Or alternatively within a single line: machine example.org login apt password debian If you need to be more specific all of these lines will also apply to the example entry: machine example.org/deb login apt password debian machine example.org/debian login apt password debian machine example.org/debian/ login apt password debian On the other hand neither of the following lines apply: machine example.org:80 login apt password debian machine example.org/deb/ login apt password debian machine example.org/ubuntu login apt password debian machine example.orga login apt password debian machine example.net login apt password debian NOTES
Basic support for this feature is present since version 0.7.25, but was undocumented for years. The documentation was added in version 1.5 changing also the implementation slightly. For maximum backward compatibility you should avoid multiple machine tokens with the same hostname, but if you need multiple they should all have a path specified in the machine token. FILES
/etc/apt/auth.conf Login information for APT sources and proxies in a netrc-like format. Configuration Item: Dir::Etc::netrc. SEE ALSO
apt.conf(5) sources.list(5) BUGS
APT bug page[1]. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command. AUTHOR
APT team NOTES
1. APT bug page http://bugs.debian.org/src:apt APT 1.6.3ubuntu0.1 17 August 2017 APT_AUTH.CONF(5)
All times are GMT -4. The time now is 12:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy