CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Lib. files issues with OF2206/Ubuntu 22.04/WSL2

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2022, 10:41
Default Lib. files issues with OF2206/Ubuntu 22.04/WSL2
  #1
New Member
 
Join Date: Sep 2022
Posts: 1
Rep Power: 0
floCha is on a distinguished road
Hi,

I am running into a compilation issue on OF2206/WSL2/Ubuntu22.04 that I have dragging for now couple days. I get the following error when I tried to compile a solver with wmake (any solver, even unmodified, e.g., laplacianFoam):
Code:
/usr/bin/ld: warning: libfileFormats.so, needed by /usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
It is followed by more library files missing (libsurfMesh.so, libPstream.so, etc.) generating more errors down the line. The complete terminal log is attached.

In my understanding, OF checks the library by using the env. variable $LD_LIBRARY_PATH. Once echoed, I get:
Code:
/home/flori/OpenFOAM/flori-v2206/platforms/linux64GccDPInt32Opt/lib:/usr/lib/openfoam/openfoam2206/site/2206/platforms/linux64GccDPInt32Opt/lib:/usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/lib/sys-openmpi:/usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/lib:/usr/lib/x86_64-linux-gnu/openmpi/lib:/usr/lib/openfoam/openfoam2206/platforms/linux64GccDPInt32Opt/lib/dummy
I checked these paths and indeed, the library files mentioned in the warnings are in their respective folders, esp. the one marked in red.

So, the library files exist, and the path indicates them correctly. Is there anything else I should check to find out what is wrong?

Details about the build.
I am running OF 2206 installed by following the instruction from OpenFOAM.com for ubuntu. It is installed on WSL2 with Win.11. OpenFoam works and I run some tutorial codes, simpleFoam with meshing/running/post-processing, and everything is ok. I tried different build like OpenFoam v10 (from openfoam.org) and get the same issue.
Strange quirk, to compile my file, I use the following command
Code:
sudo -E env "PATH=$PATH" wmake
Otherwise, wmake is not recognized when used alone with sudo.
Openfoam is currently installed in,
Code:
/usr/lib/openfoam/openfoam2206
and the solver is compiled directly from this openfoam directory (/openfoam2206/applications/solvers/basic/laplacianFoam). I tried to compile in my home directory but same error.

Thank you,
Flo
Attached Files
File Type: txt log.txt (46.8 KB, 1 views)
floCha is offline   Reply With Quote

Reply

Tags
openfoam 2206, solver compilation error

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
Reading Geometry Files & CAD Configuration Manager (17.2) Issues - Student Edition Sirsh ANSYS 0 July 31, 2017 02:06
issues with importing of .stl files Domy enGrid 0 May 22, 2016 17:52
problem compiling with header files jreiter164 Fluent UDF and Scheme Programming 2 August 14, 2015 18:31
Multigrid Stability Issues ThomasHermann SU2 1 November 5, 2014 17:18
Batch issues to get results from a transient simulation aero ANSYS 0 November 10, 2009 07:32


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