Karmic No Longer Includes ‘libstdc++5’ … :(

Before it disappear from its source and because it helped me.

** Tuesday, November 10, 2009 **
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.

3 thoughts on “Karmic No Longer Includes ‘libstdc++5’ … :(

  1. mas o problema resolve-se facilmente, hehehe.

    agora ontem tive um stress e ao que parece o JP também, com a nova versao do pymol.

    eu curto bues do ubuntu, mas ainda tenho a sensaçao que conseguia ter uma outra distro qualquer muito melhor. ha qq coisa no ubuntu que me deixa um bocadinho com o sobrolho franzido.

    mas eu nao sei configurar o debian :D um dia hei de tentar :D logo faço uma partiçao a parte, ehehe

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s