How to Get a Copy of the File Libstdc++.So.6.0.15

Where can I get a copy of the file libstdc++.so.6.0.15

You shouldn't have to manually download this library, if you're on Ubuntu Linux, it should be shipped inside this package :

sudo apt-get install libstdc++6

If you already have libstdc++6, then the problem is elsewhere and you should explain what you're trying to achieve in the first place.

If you want a newer version of libstdc++6 than the one provided in the default package, then you can try to update to the toolchain test package :

sudo add-apt-repository ppa:ubuntu-toolchain-r/test 
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

Otherwise you would have to compile GCC from source :

  • Install the prerequisite (using sudo apt-get build-dep gcc-4.7 as instance)
  • Get the source from GNU.org
  • Compile it using configure, make and make install

/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

I'm compiling gcc 4.6 from source, and apparently

sudo make install 

didn't catch this one. I dug around and found

gcc/trunk/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.15

I copied it in to /usr/lib and redirected libstdc++.so.6 to point to the new one, and now everything works.

/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found

It seems that your libstdc++.so.6 is too old for your program, You can try to update you libstdc++.so. In my centos7, my libstdc++.so.6 is linked to libstdc++.so.6.0.19

libstdc++.so.6 -> libstdc++.so.6.0.19

There are the strings in it

[root]#strings libstdc++.so.6|grep GLIBC
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBC_2.3
GLIBC_2.2.5
GLIBC_2.14
GLIBC_2.4
GLIBC_2.3.2
GLIBCXX_DEBUG_MESSAGE_LENGTH

Maybe you could download a newer version and relink the libstdc++.so.6, but you should care about are other programs in you system still work well.

Update this lib you should vary careful, It may take new problems, I had replaced the libc.so.6, then all commands can't work, I used /sbin/sln fix it. See glibc: elf file OS ABI invalid


Download libstdc++ from pkgs.org, then unpack it.

rpm2cpio libstdc++-4.9.2-1.fc21.x86_64.rpm |cpio -idmv
cp ./usr/lib64/libstdc++.so.6.0.20 /usr/lib64

Maybe you can use LD_PRELOAD=/usr/lib64/libstdc++.so.6.0.20 before you execute your program. Like this

LD_PRELOAD=/usr/lib64/libstdc++.so.6.0.20 ls -hl

Or export LD_LIBRARY_PATH=/usr/lib64/libstdc++.so.6.0.20, but I'm not certain it will work.

If you relink the libstdc++.so.6, be careful.

Genymotion: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: not found

I suggest you that check if the installer you downloaded is compatible with the version of Linux distribution.

cat /etc/*-release

You can solve of libs at the following link:
enter link description here

PhantomJS unable to find GLIBC when executed from PhP

Obviously I posted my question with a minute or two less research than I should of had. The shell_exec command is trying to use the /lib/ from /opt/lampp/ meanwhile console in Ubuntu uses it from /usr/lib/ Removing the libstdc++ from /opt/lampp and copying it from my user files fixed my issue.

contempt@contempt-MacBookPro:/opt/lampp/lib$ cp -a /usr/lib/x86_64-linux-gnu/libstdc++.so.6 .


Related Topics



Leave a reply



Submit