11

I am trying to fix my problem "GLIBCXX_3.4.15" not found, which is fairly well documented to fix. But it requires getting the file "libstdc++.so.6.0.15" from somewhere.

Most of the solutions tell me to get it from the location that I compiled my c++ library from. However, I did not compile it, it came with my Ubuntu installation, and when I do "locate" for that file it is not found.

So, I would like to just download it from somewhere, but I can't find it on the web anywhere. I have tried to look in the svn repo: svn://gcc.gnu.org/svn/gcc, but was not able to find it (its huge!)

Any help much appreciated :) Fodder

code_fodder
  • 15,263
  • 17
  • 90
  • 167
  • 1
    [Someone else had this problem before.](http://stackoverflow.com/questions/5216399/usr-lib-libstdc-so-6-version-glibcxx-3-4-15-not-found) – user123 May 17 '13 at 09:35
  • I know, I mentioned that the issue will fairly well documented. But I don't have that file on my PC, I just want to get a copy of it from somewhere.... the only answer I need is a location of where the file can be gotten from :) (EDIT: sorry, bit harsh, thanks for the link though!) – code_fodder May 17 '13 at 09:40
  • @code_fodder You shouldn't (and probably can't) get a binary version of it. You should either get it from your distribution repository, or compiling it yourself from source. – zakinster May 17 '13 at 09:53

2 Answers2

19

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
zakinster
  • 10,508
  • 1
  • 41
  • 52
1

Just realized that was having the similar problem some time ago. Disclaimer: If you know what you are doing, check this repository - Index of /debian/pool/main/g/gcc-4.7. It must be in some of the packages available. Use Archive Manager to get inside.

SChepurin
  • 1,814
  • 25
  • 17