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

libPstream.so, why do I get this error?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2009, 12:43
Default libPstream.so, why do I get this error?
  #1
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
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
bigphil is offline   Reply With Quote

Old   May 25, 2009, 11:36
Default OpenFOAM-1.5-dev compiling problem
  #2
New Member
 
parham momeni
Join Date: Mar 2009
Location: glasgow, uk
Posts: 25
Rep Power: 16
mcjicpm2 is an unknown quantity at this point
Hi,

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? (should I do it as root??)
mcjicpm2 is offline   Reply With Quote

Old   May 25, 2009, 12:15
Default
  #3
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
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
bigphil is offline   Reply With Quote

Reply


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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31


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