This library is required for many 3rd party 32bit
apps to work for instance:  backup exec remote agent.  Here is how to
install it so your apps will work:

It would seem as though ‘libstdc++5’ has been dropped from the Ubuntu repositories as of the latest version, 9.10 (Karmic). Although it still includes ‘libstdc++6’, any non-Ubuntu
applications may suffer because of this. One small workaround is to simply install the 9.04 (Jaunty) packages. Here is a little tutorial on how to do just that.

First, create a directory to hold the new packages, ‘cd’ into it and download
the packages.

mkdir /tmp/libstdc++5

cd /tmp/libstdc++5

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_amd64.deb

wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_i386.deb

Next, lets see what libs already exist.

sudo updatedb

locate libstdc++.so.

You should see ‘libstdc++6’ installed. Note, ‘/usr/lib32/’ will not exist for
32-bit users.

/usr/lib/libstdc++.so.6

/usr/lib/libstdc++.so.6.0.13

/usr/lib32/libstdc++.so.6

/usr/lib32/libstdc++.so.6.0.13

For 32-bit users …

sudo dpkg -i
libstdc++5_3.3.6-17ubuntu1_i386.deb

sudo updatedb

locate libstdc++.so.

You should now see ‘libstdc++5’ has been installed!

/usr/lib/libstdc++.so.5

/usr/lib/libstdc++.so.5.0.7

/usr/lib/libstdc++.so.6

/usr/lib/libstdc++.so.6.0.13

For 64-bit users …

sudo dpkg --force-architecture -i
libstdc++5_3.3.6-17ubuntu1_i386.deb

sudo updatedb

locate libstdc++.so.

Here we forced the 32-bit libs to be installed for legacy support, however they
are in the wrong place.

/usr/lib/libstdc++.so.5

/usr/lib/libstdc++.so.5.0.7

/usr/lib/libstdc++.so.6

/usr/lib/libstdc++.so.6.0.13

/usr/lib32/libstdc++.so.6

/usr/lib32/libstdc++.so.6.0.13

Now lets put them in the correct place.

sudo mv /usr/lib/libstdc++.so.5*
/usr/lib32/.

sudo updatedb

locate libstdc++.so.

Here you can see we just moved them over to the ‘/usr/lib32/’ folder.

/usr/lib/libstdc++.so.6

/usr/lib/libstdc++.so.6.0.13

/usr/lib32/libstdc++.so.5

/usr/lib32/libstdc++.so.5.0.7

/usr/lib32/libstdc++.so.6

/usr/lib32/libstdc++.so.6.0.13

Now we can install the 64-bit libs.

sudo dpkg -i
libstdc++5_3.3.6-17ubuntu1_amd64.deb

sudo updatedb

locate libstdc++.so.

You should now see ‘libstdc++5’ has been installed (both 32-bit & 64-bit
versions)!

/usr/lib/libstdc++.so.5

/usr/lib/libstdc++.so.5.0.7

/usr/lib/libstdc++.so.6

/usr/lib/libstdc++.so.6.0.13

/usr/lib32/libstdc++.so.5

/usr/lib32/libstdc++.so.5.0.7

/usr/lib32/libstdc++.so.6

/usr/lib32/libstdc++.so.6.0.13

As always, use this tutorial at your own risk! We will not be held responsible
if harm should come to your system by following the directions stated above.

Leave a Reply