I am trying to run my CFD code using the OpenFoam, the problem is that whenever I typed paraview it shows me the Glibcxx error., I am not sure how can get this file and install it. I am beginner using this software.
My openfoam version : Ubuntu 22.04.4 LTS (Window run Ubuntu)
Release :22.04
Paraview I installed it is around: 5.12.0-RC2
Any suggestion
Error : ImportError: /opt/OpenFOAM/ThirdParty-v1706/platforms/linux64/gcc-6.3.0/lib64/libstdc++.so.6: version `GLIBCXX_3.4.29′ not found (required by /usr/lib/python3/dist-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so)
I tried updating the file but the results are same
There is similar question but no concrete or straightforward response: Where can I find GLIBCXX_3.4.29?
Try1 :
sudo add-apt-repository ppa:ubuntu-toolchain-r/test # Ignore if not ubuntu
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get upgrade libstdc++6
After this is complete, make sure to run the following:
sudo apt-get dist-upgrade
Also, make sure to confirm the necessary dependencies are installed for the right GLIBCXX version.
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
Also try the Quick Solution by @bobka
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH # add to ~/zshrc OR bashrc whatev
Mark Wok is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.