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

Library Problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2020, 15:43
Exclamation Library Problem
  #1
New Member
 
Semih
Join Date: Mar 2017
Posts: 6
Rep Power: 9
engingreed is on a distinguished road
Hello everyone,

I was using openfoam7, but after version 8; I removed ver.7 and install openfoam8. At openfoam7 everything was quite good. But I got some problems after installation of openfoam8. I gave details of that problem below. I tried to reinstall openfoam7 but problem still continues.

It gives problem that is about libraries.

Code:
simpleFoam -help -->simpleFoam: error while loading shared libraries:libmomentumTransportModels.so: cannot open shared object file: Nosuch file or directory
Code:
ls -l openfoam8 -->ls: cannot access 'openfoam8': No such file or directory
Code:
ls -l openfoam7 -->ls: cannot access 'openfoam7': No such file or directory
Code:
cd /opt -->
/opt ll -->drwsrwsrwt 1 root root 4.0K Sep 22 00:57 openfoam8drwsrwsrwt 1 root root 4.0K Sep 22 00:57 paraviewopenfoam56
I checked my bash and root is:
Code:
source /opt/openfoam8/etc/bashrc
I checked that destination:
Code:
cd /opt/openfoam8/etc  -->
/opt/openfoam8/etc || ll -->
total 64K-rwsrwsrwt 1 root root 1.2K Sep  1 15:14 README.org-rwsrwsrwt 1 root root 7.3K Sep  1 15:15 bashrcdrwsrwsrwt 1 root root 4.0K Sep 22 00:57 caseDicts-rwsrwsrwt 1 root root 7.5K Sep  1 15:14 cellModelsdrwsrwsrwt 1 root root 4.0K Sep 22 00:57 codeTemplatesdrwsrwsrwt 1 root root 4.0K Sep 22 01:05 config.cshdrwsrwsrwt 1 root root 4.0K Sep 22 00:57 config.sh-rwsrwsrwt 1 root root  31K Sep  1 15:14 controlDict-rwsrwsrwt 1 root root 7.9K Sep  1 15:15 cshrc-rwsrwsrwt 1 root root  758 Sep  1 15:14 paraFoamdrwsrwsrwt 1 root root 4.0K Sep 22 00:56 templatesdrwsrwsrwt 1 root root 4.0K Sep 22 00:57 thermoData
Thank you,
Kindest regards.
engingreed is offline   Reply With Quote

Old   September 29, 2020, 05:02
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Well it is an interesting case.
  • The ls command does not make any sense and will just let you know that there is no folder names openfoam8 at the location you are in your current shell
  • The error gives you the hint that the library is not found
  • It seems that during installation there was a error


Please let us know:
Code:
tree -L 2 /opt/openfoam8
which simpleFoam
echo $WM_PROJECT_DIR
find /opt/ -iname "libmomentumTransportModels.so"
Out of the box:
Code:
sudo apt remove --auto-remove openfoam8
sudo apt clean
sudo apt update
sudo apt-get -y install openfoam8
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply

Tags
library, openfoam8, problem


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
Weird Problem while compiling new library ashish.vinayak OpenFOAM Programming & Development 3 March 15, 2019 10:39
Mesh& steptime independant: conduction-convection problem Fati1 Main CFD Forum 1 October 28, 2018 13:52
decomposePar is missing a library whk1992 OpenFOAM Pre-Processing 8 March 7, 2015 07:53
custom code compilation error: library linking problem nadine OpenFOAM Programming & Development 5 October 10, 2014 09:58
Strange Problem With updating the library farhagim OpenFOAM 0 August 10, 2010 12:34


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