LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 12-05-2007, 03:14 AM   #1
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Rep: Reputation: 30
Question /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./example1)


hi
i have installed a new set of c++ library files and when i compiled its fine but when i started to link it i get following messages

Code:
./example1: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./example1)

i have given command ls -l and found the result as

Code:
lrwxrwxrwx    1 root   root          18 Jul  2 11:29 libstdc++.so.6 -> libstdc++.so.6.0.3
-rwxr-xr-x    1 root   root      804288 Jul 25  2005 libstdc++.so.6.0.3
so there is a link b/w libstdc++.so.6 -> libstdc++.so.6.0.3 but no link from libstdc++.so.6.0.3

so do i have to create a link ,if so how to that. i have searched google but not found any solutions that suits my problem.

thank u
 
Old 12-05-2007, 08:12 AM   #2
ph73nt
Member
 
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Kubuntu
Posts: 55

Rep: Reputation: 16
The output looks suspiciously like it's not happy with the installed GLIBC. What version of GLIBC are you running?
 
Old 12-06-2007, 03:44 AM   #3
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Original Poster
Rep: Reputation: 30
what is the command find the version

i tried GLIBC -v but it had not worked
 
Old 12-06-2007, 09:55 AM   #4
ph73nt
Member
 
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Kubuntu
Posts: 55

Rep: Reputation: 16
Assuming you are using RPM. I would issue rpm -q glibc if that returns nothing try rpm -qa |grep glibc
 
Old 12-06-2007, 11:06 PM   #5
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Original Poster
Rep: Reputation: 30
thank u for following my post.

both the commands worked

user@localhost:~$ rpm -q glibc
glibc-2.6-3
glibc-2.6-3



user@localhost:~$ rpm -qa |grep glibc
glibc-common-2.6-3
glibc-devel-2.6-3
glibc-2.6-3
glibc-headers-2.6-3
glibc-2.6-3
glibc-devel-2.6-3
 
Old 12-10-2007, 07:24 AM   #6
ph73nt
Member
 
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Kubuntu
Posts: 55

Rep: Reputation: 16
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.
 
Old 12-12-2007, 03:33 AM   #7
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Original Poster
Rep: Reputation: 30
hi ph73nt

Quote:
what about rpm -qa |grep libstdc++. Does this give you a version?

yes

[bharani@localhost ~]$ rpm -qa |grep glibc
glibc-utils-2.3.4-2.13
glibc-kernheaders-2.4-9.1.98.EL
glibc-2.3.4-2.13
glibc-devel-2.3.4-2.13
compat-glibc-headers-2.3.2-95.30
glibc-common-2.3.4-2.13
glibc-headers-2.3.4-2.13
compat-glibc-2.3.2-95.30
glibc-profile-2.3.4-2.13



Quote:
Did you install the c++ libraries manually or via your distribution's GUI installer?

> cd /
> tar xjf sourceryvsipl++-1.3-serial-builtin-x86_64-sse2.tar.bz2



i placed the tar file in root directory and perfomed the above command


one thing i did not mentioned is that i have updated the gcc compiler(4.2.2)
 
Old 12-12-2007, 09:30 AM   #8
ph73nt
Member
 
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Kubuntu
Posts: 55

Rep: Reputation: 16
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.
 
Old 12-13-2007, 07:24 AM   #9
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Original Poster
Rep: Reputation: 30
hi ph73nt
thanks for u r time

just have a last try.

i have googled and found a similar thread but i cant understand (may be u can)since its about debian.
here is the link
http://www.nabble.com/Debian-Etch-Pa...o13389761.html
please have a single try.
 
Old 12-13-2007, 08:24 AM   #10
ph73nt
Member
 
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Kubuntu
Posts: 55

Rep: Reputation: 16
What distibution are you using?
 
Old 12-18-2007, 02:02 AM   #11
babu198649
Member
 
Registered: Oct 2007
Posts: 160

Original Poster
Rep: Reputation: 30
[bharani@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 i686 i386 GNU/Linux

Last edited by babu198649; 12-18-2007 at 02:04 AM.
 
Old 12-21-2007, 07:22 AM   #12
ph73nt
Member
 
Registered: Feb 2005
Location: Kent, UK
Distribution: OpenSUSE, Kubuntu
Posts: 55

Rep: Reputation: 16
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.
 
1 members found this post helpful.
Old 06-04-2009, 02:17 AM   #13
debiprasad
LQ Newbie
 
Registered: Jun 2009
Location: Mumbai
Posts: 5

Rep: Reputation: 0
Smile DebiPrasad

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
 
Old 06-04-2009, 07:57 AM   #14
debiprasad
LQ Newbie
 
Registered: Jun 2009
Location: Mumbai
Posts: 5

Rep: Reputation: 0
Smile debiprasad

Have Fun
Quote:
Originally Posted by debiprasad View Post
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

Hope this will help you...
 
Old 06-23-2009, 02:47 PM   #15
hartings
LQ Newbie
 
Registered: Apr 2002
Location: SWEDEN
Distribution: RedHat 9
Posts: 25

Rep: Reputation: 15
Similar problem, but not the same....

Hi,

I run CentOS 5.3 (RHEL5.3) which has package libstdc++-4.1.2-44.el5.i386.rpm installed which provides:

libstdc++
libstdc++.so.6
libstdc++.so.6(CXXABI_1.3)
libstdc++.so.6(CXXABI_1.3.1)
libstdc++.so.6(GLIBCXX_3.4)
libstdc++.so.6(GLIBCXX_3.4.1)
libstdc++.so.6(GLIBCXX_3.4.2)
libstdc++.so.6(GLIBCXX_3.4.3)
libstdc++.so.6(GLIBCXX_3.4.4)
libstdc++.so.6(GLIBCXX_3.4.5)
libstdc++.so.6(GLIBCXX_3.4.6)
libstdc++.so.6(GLIBCXX_3.4.7)
libstdc++.so.6(GLIBCXX_3.4.8)
libstdc++

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!!

Could I install this rpm without risks?

Appreciate your comments!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not find Library libstdc++.so.6(GLIBCXX_3.4) cector Linux - Software 2 11-01-2007 07:04 AM
libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/bin/../lib/libstdc++.s hferretluv Linux - Software 4 12-18-2006 12:31 PM
audacity unable to locate required lib files present in /usr/lib/ adityavpratap Slackware 4 11-30-2006 06:06 AM
Unable to log in to SUSE 9.3; /usr/lib/libstdc++.so.6 problem brianbahr Suse/Novell 1 02-23-2006 08:42 PM
/usr/lib/libstdc++.so.5: version 'GLIBCPP_3.2.2' not found vidi Linux - Software 1 06-10-2004 09:26 AM


All times are GMT -5. The time now is 09:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration