/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./example1)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So it looks like your libstdc++ is expecting an older version of GLIBC. Most people experience the problem of having something too old, not too new
Did you install the c++ libraries manually or via your distribution's GUI installer? what about rpm -qa |grep libstdc++. Does this give you a version?
If I am right and your libstdc++ is newer than your GLIBC and you definately need a newer version of the libstdc++ I'm not sure what to suggest. In my experience GLIBC isn't something you can easily update or upgrade as a lot of your RPMs will be built aginst this GLIBC. New GLIBC usually means new version of your distro. You could try googling it, of course.
If you are a newbie interested in how a linux distibution is assembled then it's worth looking at www.linuxfromscratch.org They detail how to build you own linux distribution. It's worth having a go at to learn how linux works but you wouldn't get a very useful installation without an awful lot of work.
I seem to have mis-read part of your replies. Your system expects GLIBC-3.4.9 and you have GLIBC-2.6.3 which is is older than the sytem expects not what I said, which was that it was older. Anyway the outcome is similar; GLIBC is difficult to update. There's probably another thread about that somewhere.
As for the libraries I've only manually installed libraries when following linuxfromscratch (but I normally just use RPM). Have you done ldconfig from the command line? Check out LFS to see what it says about libraries. Otherwise that's the end of my knowledge on this subject.
Perhaps I should have read the original post better. GLIBC is not the same as GLIBCXX. You need GLIBCXX version 3.4.9 or newer.
GLIBCXX is provided by libstdc++ so it looks as if we have identified the out of date package.
rpm.pbone.net is a good place to search for rpms. Search for libstdc++ for you distribution and click on it to inspect the package contents. It will tell you which versions of GLIBCXX are proveded. It's worth noting that there are sometimes newer versions of rpms on this site than on your distros package repositories. If you find the glibcxx you're looking for then download the rpm and install it.
I got same type of error during installation of VLC media player in SuSE 10.2 Desktop. I resolved it by following the below steps:
vlc-wrapper -v or vlc -v (showing the following error)
main libvlc warning: cannot load module '/usr/lib/vlc/gui/libskins2_plugin.so' (/usr/lib/libstdc++.so.6: version 'GLIBCXX_3.4.9' not found by /usr/lib/vlc/gui/libskins2_plugin.so)
Solution: I download the rpm llvm-gcc-c++-2.5-0.pm.2 from rpm.pbhone.net site and installed it and then:
I got the solution by adding entries in /etc/ld.so.conf
# vi /etc/ld.so.conf
add the following line:
/usr/lib/llvm-gcc/lib
# ldconfig
I got same type of error during installation of VLC media player in SuSE 10.2 Desktop. I resolved it by following the below steps:
Error:
vlc-wrapper -v or vlc -v (showing the following error when runnign from system user)
main libvlc warning: cannot load module '/usr/lib/vlc/gui/libskins2_plugin.so' (/usr/lib/libstdc++.so.6: version 'GLIBCXX_3.4.9' not found by /usr/lib/vlc/gui/libskins2_plugin.so)
Solution: I download the rpm llvm-gcc-c++-2.5-0.pm.2 from rpm.pbhone.net site and installed it and then:
Login as root
# vi /etc/ld.so.conf.d/vlc.conf (create a file)
add the following line in vlc.conf:
/usr/lib/llvm-gcc/lib
when I checked in /usr/lib I found something like this:
libstdc++.so.6 -> libstdc++.so.6.0.8 (It's a symbolic link)
then I did:
cp /usr/lib/llvm-gcc/lib/libstdc++.so.6.0.9 /usr/lib
rm -f /usr/lib/libstdc++.so.6
ln -s /usr/lib/libstdc++.so.6.0.9 /usr/lib/libstdc++.so.6
run the following command to update your modification:
# ldconfig
but NOT libstdc++.so.6(GLIBCXX_3.4.9) which I need for an application I want to install.
The newer version of libstdc++, used by fedora10 is libstdc++-4.3.2-7.i386.rpm, which provides the same, plus libstdc++.so.6(GLIBCXX_3.4.9) which I need!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.