Anaconda Libstdc++.So.6: Version 'Glibcxx_3.4.20' Not Found

ImportError: libstdc++.so.6: version `GLIBCXX_3.4.20' not found

This fixed the problem for me...

conda install libgcc

from https://github.com/ContinuumIO/anaconda-issues/issues/483

libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Considering that /usr/lib/x86_64-linux-gnu/libproxy.so.1 is supplied by Ubuntu, let's assume that it is compatible with the system libstdc++ library. This means that the application is not actually using that system library, but some other version. I'd suggest to check if the application sets LD_LIBRARY_PATH and if there is another copy of libstdc++.so.6 on that path. In this case, try moving it away or deleting it—the application should then switch to the system library, which is newer and should be backwards-compatible.

tensorflow ImportError: /home/user/anaconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found

I temporarily solved the problem following this answer, here is what I did:

1) activate virtual environment:

source activate virtual-env-name

2) Install a newer version of libstdc++.so.6, in my case the libgcc version is 5+ with anaconda3:

conda install libgcc

3) Go to the anaconda3/lib folder:

cd ~/anaconda3/lib

4) Back up the libstdc++.so.6:

mv -vf libstdc++.so.6 libstdc++.so.6.old

5) Link the freshly installed libstdc++.so.6 in the virtual environment library here, virtual-env-name is the virtual environment name:

ln -s ~/anaconda3/envs/virtual-env-name/lib/libstdc++.so.6 ./libstdc++.so.6

Hope this is helpful to somebody else who has the same problem.

R reticulate libstdc++so GLIBCXX_3.4.21 not found issue

It seems that your GCC is too old to be used with your R module. This issue is not related to R but the error message is the same.

Do you have several installations of GCC (in particular in /usr/local)? If so, you can try something like export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64 as suggested in the previous link I gave.

Otherwise, you should install a newer version of GCC (in a module environment if you still need your current version of GCC, see here for details, the explanations are very clear IMHO). Then, you will need to run R with your new environment.

/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found required by TensorFlow

So, i just tested Stretch and it works fine. The issue is related to the OS in this case Debian 8 Jessie , it cannot handle a higher version of glibcxxx than the 3.4.20.

PS : Stretch is Debian 9's distribution name



Related Topics



Leave a reply



Submit