Since I installed according to the guide here on 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 in .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 here), 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; will it 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 given here, foamInstallationTest
is not meant for installation from the tar file. Openfoam installation seems to be alright based on the running of the cavity tutorial.