CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[] openfoam v2006 wsl2 ubuntu 20.04 GLIBCXX_3.4.26 not found

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2020, 03:18
Default openfoam v2006 wsl2 ubuntu 20.04 GLIBCXX_3.4.26 not found
New Member
Aditya Saurabh
Join Date: Aug 2012
Posts: 1
Rep Power: 0
adisaurabh is on a distinguished road
Since I installed according to the guide ( wsl2 ubuntu 20.04, I've been having errors related to, 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, specifically copy 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 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.
adisaurabh is offline   Reply With Quote

Old   July 7, 2020, 02:12
New Member
bestucan's Avatar
Tu Can
Join Date: Jul 2017
Location: China
Posts: 16
Rep Power: 8
bestucan is on a distinguished road
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.)


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/, link to /usr/lib/x86_64-linux-gnu/
bestucan is offline   Reply With Quote


Tags, ubuntu 20.04, wsl2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 04:20
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 15:11
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51

All times are GMT -4. The time now is 15:15.