CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   libPstream.so, why do I get this error? (https://www.cfd-online.com/Forums/openfoam-installation/64517-libpstream-so-why-do-i-get-error.html)

bigphil May 13, 2009 12:43

libPstream.so, why do I get this error?
 
Hi,

I recently compiled OpenFOAM-1.5-dev.

Everything seemed to go fine, except when I try to run anything,I get the error (blockMesh in this case):

blockMesh: error while loading shared libraries: libPstream.so: cannot open shared object file: No such file or directory

but when I execute:
[COLOR="rgb(105, 105, 105)"] unset WM_MPLIB [/COLOR]
and resource the bash,

then blockMesh and all the other solvers/utilities work fine!

This happens everytime I open a new shell.

Why must I do this?

It's like the MPI keeps defaulting to lam for some reason.

I compiled OF-1.2 a while back, and I think it uses lam instead of OPENMPI.

Basically OF-1.5-dev works fine but it's annoying that I must unset WM_MPLIB everytime I open a new shell.

Any ideas?

Philip

mcjicpm2 May 25, 2009 11:36

OpenFOAM-1.5-dev compiling problem
 
Hi,:eek::cool::confused:

I have downloaded the 1.5-dev version from http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/ , but I have difficulty compiling it.
Here is the exact process that I have done:

cd /home/ad/OpenFOAM

1-I did : tar -xzf OpenFOAM-1.5-dev.General_2009-04-11.tgz
2-I did : tar -xzf ThirdParty.General_2008-12-11.tgz
3-cd etc/
4-source bashrc
5-cd ~
6-vi .bashrc
7-I added . /home/ad/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc to the end of .bashrc in home directory, then I did source .bashrc (no error sofar)
9-when I start compileing it by typing ./Allwamke after almost one hour of compiling it returns me the following error (the src files are compiled with no errors, but neither of applications are compiled, they all come with Error 1 or Error 2):

make[3]: *** [/home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/makeFaMesh] Error 1
make[2]: *** [makeFaMesh] Error 2
Making dependency list for source file curvedEdges/curvedEdge.C
Making dependency list for source file curvedEdges/lineEdge.C
g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/decompositionAgglomeration/decompositionMethods/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/autoMesh/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/meshTools/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/triSurface/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/dynamicMesh/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/edgeMesh/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/ad/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC Make/linux64GccDPOpt/snappyHexMesh.o -L/home/ad/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt \
-L/home/ad/OpenFOAM/OpenFOAM-1.5-dev/lib/linux64GccDPOpt/openmpi-1.2.6 -lparMetisDecompositionMethod -lfiniteVolume -ldecompositionMethods -ldynamicMesh -lmeshTools -lautoMesh -lOpenFOAM -liberty -ldl -lm -o /home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/snappyHexMesh
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make[3]: *** [/home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/snappyHexMesh] Error 1
make[2]: *** [snappyHexMesh] Error 2



or



linux64GccDPOpt \
-lmeshTools -lfiniteVolume -ldynamicMesh -lOpenFOAM -liberty -ldl -lm -o /home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/blockMesh
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make[3]: *** [/home/ad/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/blockMesh] Error 1
make[2]: *** [blockMesh] Error 2
make[2]: Target `application' not remade because of errors.
make[1]: *** [generation] Error 2
make[1]: Target `application' not remade because of errors.
make: *** [mesh] Error 2
make: Target `application' not remade because of errors.
+ '[' '' = doc ']'
[ad@fluent-srv4 OpenFOAM-1.5-dev]$


10-It did have no have no affect if I use the binary version of the Third party or the developed version I am getting with both the same error.

Can anyone help me? Am I doing something Wrong?:confused::confused::confused: (should I do it as root??)

bigphil May 25, 2009 12:15

Hi,


First, I am guessing you meant to put this post in its own thread.

Second, did you install OpenFOAM in 'home/OpenFOAM' or 'home/ad/OpenFOAM/'?

If it is not in 'home/OpenFOAM', then you must follow the 'installation in an alternative location' in the README file:
http://www.opencfd.co.uk/openfoam/doc/README.html


I hope this helps,
Philip


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