|
[Sponsors] |
[OpenFOAM.com] openfoam v2006 wsl2 ubuntu 20.04 GLIBCXX_3.4.26 not found |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 6, 2020, 04:18 |
openfoam v2006 wsl2 ubuntu 20.04 GLIBCXX_3.4.26 not found
|
#1 |
New Member
Aditya Saurabh
Join Date: Aug 2012
Posts: 1
Rep Power: 0 |
Since I installed according to the guide (https://openfoam.com/download/install-windows-10.php) wsl2 ubuntu 20.04, I've been having errors related to libstc++.so.6, specifically GLIBCXX_3.4.26 not found (required by ...) where ... refers to different files within /opt/OpenFOAM/ThirdParty-v2006/platforms/linux64/gcc-6.3.0/lib64/ ending with .so, .so.1, .so.6 and so on (for instance, when running paraFoam the error would appear with respect to about 20 such files). I am able to successfully visualize the cavity tutorial (in paraview installation on windows).
I could get the errors to go away by doing what the user laborg suggested on Jan 4 for a similar problem with julia (see https://discourse.julialang.org/t/gl...rcall/29113/10), specifically copy libstdc++.so.6 from /usr/lib/x86_64-linux-gnu to /opt/OpenFOAM/ThirdParty-v2006/platforms/linux64/gcc-6.3.0/lib64/. The questions is whether this copy-paste solution is recommended or a different methods is more appropriate; will the solution to the errors come back and haunt me later? Is the libstdc++.so.6 from system installation going to be an issue if used in the lib64 folder of openfoam? An additional info concerning openfoam installation, foamInstallationTest shows *not installed* errors against flex, wmake, gcc, g++, icoFoam and *critical error* for gcc, g++, icoFoam; but I as see here: foamInstallationTest, foamInstallationTest is not meant for installation from the tar file. Openfoam installation seems to be alright based on the running of the cavity tutorial. |
|
July 7, 2020, 03:12 |
|
#2 |
New Member
Tu Can
Join Date: Jul 2017
Location: China
Posts: 16
Rep Power: 9 |
It's not recommended to use lib by copy-paste.
add lib path to environment, like $LD_LIBRARY; and tell the compiler software(make/wmake) where to load lib. (By modify make/option(make) for once wmake OR somewhere I don't know to change every wmake.) OR this 64 bit lib path form "/usr/lib/x86_64-linux-gnu" is used by debian-based OS. and redhat-based OS is different("/usr/lib64"). while some compiler setting is assumed to work with redhat-based OS. you could put a soft link, /usr/lib64/libstdc++.so.6, link to /usr/lib/x86_64-linux-gnu/libstdc++.so.6 |
|
Tags |
libstdc++.so.6, ubuntu 20.04, wsl2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 05:20 |
Gmsh installation on terminal help | spitfire | Main CFD Forum | 4 | July 27, 2017 16:11 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |