Install libstdc++.so.5 on Ubuntu 11.04 Natty Narwhal

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

If you try installing Intel Fortran Compiler or several other softwares on Ubuntu 11.04 Natty Narwhal or older Ubuntu, it is going to throw the error:

error while loading shared libraries: libstdc++.so.5

The original libstdc++5 package is no longer available with the Ubuntu 9.10 repos. So for 32 bit system you would have to get it from Debian Repository.

Install it by double clicking and using Ubuntu Software center and you are good to go if you are using the 32 bit OS.

For 64 bit it is a bit complicated, and you have to follow some additional steps first install libstdc++5 64bit and then do the following (now the remaining steps might be optional for you, for Natty I only had to install the file linked above and everything worked fine, so I skipped remaining steps, check this before attempting the remaining steps):

wget http://security.ubuntu.com/ubuntu/pool/universe/i/ia32-libs/ia32-libs_2.7ubuntu17.1_amd64.deb
dpkg-deb -x ia32-libs_2.7ubuntu17.1_amd64.deb ia32-libs
sudo cp ia32-libs/usr/lib32/libstdc++.so.5.0.7 /usr/lib32/
cd /usr/lib32
sudo ln -s libstdc++.so.5.0.7 libstdc++.so.5

This should get you going.

You might also like

Ubuntu 11.04 Natty Narwhal (Alpha 1) Preview It is going...
Enable Rar Unrar Support in Ubuntu 11.04 Natty Narwhal The archive...
Install libstdc++.so.5 on Ubuntu 10.10 or 10.04 or 9.10 If you try...
Test Drive Ubuntu 11.04 Natty Narwhal (Beta 2) It's time to...

About the Author

has written 346 posts on this blog.

Meditating towards his "nerdvana", lifehacker is a teacher by the day and a nerdy blogger by the night. He lives to learn and yearns to learn living.

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*

Copyright © 2019 Hack Your Life!. All rights reserved.
Proudly powered by WordPress. Developed by Deluxe Themes