Installing a Debian package which depends on libstdc++5

From MobileRobots Research and Academic Customer Support

Jump to: navigation, search

Some software for Linux depends on the older libstdc++5 C++ runtime library, which is not installed by default on newer versions of Debian (where most programs new use libstdc++6).

If you are attempting to install a package that requires libstdc++5 using dpkg but libstdc++5 is not installed, you will see an error message similar to this:

 dpkg: dependency problems prevent configuration of acts:
 acts depends on libstdc++5 (>= 1:3.3.4-1); however:
  Package libstdc++5 is not installed.
dpkg: error processing acts (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 acts

A package built using a newer version of Debian using libstdc++6 may be available on the download page for that package: see the list of All Software or search this site. The package name will indicate the Debian and GCC versions used to build the package: e.g. "etch" (Debian 4) or "lenny" (Debian 5).

Or, you can install libstdc++5 by searching for it in the Synaptic package manager and installing it, or by issuing this command on a command line:

 sudo apt-get install libstdc++5

In general, if a Debian package fails to install due to missing dependencies, try installing it using Synaptic or apt-get.

You must have an internet connection for Synaptic or apt-get to download the package(s) from the online Debian repositories.

If libstdc++5 is not available using apt, you can try manually installing this package:

Download and install this package using "sudo dpkg -i libstdc++5_3.3.5-13_i386.deb".

Ubuntu 9+

Ubuntu does not contain libstdc++5 anymore, but you can download a libstdc++5 package that appeared in a previous Ubuntu release and try it:

Personal tools