CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Library Problem (https://www.cfd-online.com/Forums/openfoam/230446-library-problem.html)

engingreed September 23, 2020 15:43

Library Problem
 
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.

Tobi September 29, 2020 05:02

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



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