TESLA
TESLA copied to clipboard
GLIBCXX Error when installing
Hi,
I tried to install Tesla on a ubuntu system a got the following error:
ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by /home/myusername/.local/share/r-miniconda/envs/SCP_env/lib/python3.8/site-packages/cv2.cpython-38-x86_64-linux-gnu.so)`
Here are the relevant libraries:
locate libstdc++.so.6 /home/myusername/.local/share/r-miniconda/envs/SCP_env/lib/libstdc++.so.6 /home/myusername/.local/share/r-miniconda/envs/SCP_env/lib/libstdc++.so.6.0.32 /home/myusername/.local/share/r-miniconda/envs/SpatialDDLS-env/lib/libstdc++.so.6 /home/myusername/.local/share/r-miniconda/envs/SpatialDDLS-env/lib/libstdc++.so.6.0.32 /home/myusername/.local/share/r-miniconda/envs/r-reticulate/lib/libstdc++.so.6 /home/myusername/.local/share/r-miniconda/envs/r-reticulate/lib/libstdc++.so.6.0.32 /home/myusername/.local/share/r-miniconda/lib/libstdc++.so.6 /home/myusername/.local/share/r-miniconda/lib/libstdc++.so.6.0.29 /home/myusername/.local/share/r-miniconda/pkgs/libstdcxx-ng-11.2.0-h1234567_1/lib/libstdc++.so.6 /home/myusername/.local/share/r-miniconda/pkgs/libstdcxx-ng-11.2.0-h1234567_1/lib/libstdc++.so.6.0.29 /home/myusername/.local/share/r-miniconda/pkgs/libstdcxx-ng-13.2.0-h7e041cc_5/lib/libstdc++.so.6 /home/myusername/.local/share/r-miniconda/pkgs/libstdcxx-ng-13.2.0-h7e041cc_5/lib/libstdc++.so.6.0.32
echo $LD_LIBRARY_PATH /shared/apps/anaconda3/2020.11/lib:/opt/slurm/lib:/shared/apps/R/4.3.1/lib/R/lib:/shared/apps/R/4.3.1/lib:/lib:/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/java-11-openjdk-amd64/lib/server
Is there a quick fix?
Thanks for your interest in TESLA. I haven't come across this error. However, I find a potential quick solution here: https://askubuntu.com/questions/1166292/version-glibcxx-3-4-26-not-found-even-though-libstdc-so-6-recent-enough Installing libstdc++6 and gcc-9 helped me. Hope it will help you too.
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install gcc-9
sudo apt install libstdc++6
Hope this helps.