CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   /usr/bin/ld: cannot find -lincompressibleRASModels (OF-1.7.x) (http://www.cfd-online.com/Forums/openfoam-installation/82353-usr-bin-ld-cannot-find-lincompressiblerasmodels-1-7-x.html)

kumar November 24, 2010 07:17

/usr/bin/ld: cannot find -lincompressibleRASModels (OF-1.7.x)
 
Hello ,
I tried to install OpenFoam-1.7.x today on a new user account. I have installed OF-1.7.x before sucessfully on my laptop on Ubuntu 9.10.

But this time some of my solvers are not compiling especially those related to multiphase flow.

and the error is like this:
/usr/bin/ld: cannot find -lincompressibleRASModels

This is quiet strange because I installed OF-1.7.x few weeks back on my laptop and I could install everything properly and I also ran some simulations using interFoam.
Please let me know where this error is coming from.

bye regards
K.Suresh kumar

wyldckat November 24, 2010 18:31

Hi K.Suresh kumar,

The git version is known for the occasional missing commit, as you can see here: "fix 05bdccba11142a2796b25a480943f2341abe89bd misses ';' "

When this happens, you can first try to simply run:
Code:

git pull
./Allwmake

If the errors still occurs, then read this thread: http://www.cfd-online.com/Forums/ope...tml#post276321 - And yes, my advice is to read the whole thread (er, starting from post #2 :cool:), just in case you don't want to rebuild the whole OpenFOAM toolbox ;)

Best regards and good luck!
Bruno

kumar November 25, 2010 07:57

Hi Bruno,
Thanks for the information. I did a git pull and ran ./Allwmake . It is still compiling, but I already saw that the point where the compilation used to fail before, it is not failing now and Ihave already sucessfully compiled interFoam, which is the solver I am using.

So the problem is coming from git . Is it not possible to make git more reliable, as I would have saved some time, if this simple error would not have occured.
Just a suggestion.

Thanks again
Regards
K.Suresh kumar

wyldckat November 25, 2010 11:38

Hi K.Suresh kumar,

Quote:

Originally Posted by kumar (Post 284767)
Is it not possible to make git more reliable, as I would have saved some time, if this simple error would not have occured.

Well, the git version is the bug fix version and it can be considered the public bleeding edge version of OpenFOAM. I remember in the old website that they said something like "this version is for more experienced users", because of these very same issues: fixing one bug might unleash another ;)

You can yourself define you current stable bug fix version. For example, if you made a successful build in a previous machine, run:
Code:

git show
and take note of the whole line of the "commit 17cf78...." version. Then on the second machine, after running "git pull", run:
Code:

git checkout 17cf78
An incomplete commit version should work as well, since the huge hexadecimal number is almost unique on the start of the commit number. This way you'll have the same version in both machines.

Best regards,
Bruno

alvora March 16, 2011 10:57

Error in OpenFOAM171 during compling and enviornment set up
 
Hello friends,

I have a also problem regarding to compilation.

I downloaded openfoam171 from the Ubuntu/Debian Pack installation. I followed each instructions which are given in that page. I also added a line whatever mentioned in that page.
but when I complied by typing ./Allwmake in installation directory, I got one error as below after 4 hours running.


/usr/bin/ld: cannot find -lmetis
/usr/bin/ld: cannot find -lGKlib
collect2: ld returned 1 exit status
make: *** [/opt/openfoam171/lib/linuxGccDPOpt/libmetisDecomp.so] Error 1
+ [ -d /opt/openfoam171/lib/linuxGccDPOpt/openmpi-system ]
+ WM_OPTIONS=linuxGccDPOptSYSTEMOPENMPI
+ wmake libso parMetisDecomp
SOURCE=parMetisDecomp.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -DOMPI_SKIP_MPICXX -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -I/opt/ThirdParty-1.7.1/ParMetis-3.1/ParMETISLib -I/opt/ThirdParty-1.7.1/ParMetis-3.1 -I../decompositionMethods/lnInclude -I../metisDecomp/lnInclude -I../scotchDecomp/lnInclude -IlnInclude -I. -I/opt/openfoam171/src/OpenFOAM/lnInclude -I/opt/openfoam171/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOptSYSTEMOPENMPI/parMetisDecomp.o
parMetisDecomp.C:41: fatal error: parmetis.h: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOptSYSTEMOPENMPI/parMetisDecomp.o] Error 1

and also

/usr/bin/ld: cannot find -lMGridGen
collect2: ld returned 1 exit status
make: *** [/opt/openfoam171/lib/linuxGccDPOpt/libMGridGenGAMGAgglomeration.so] Error 1

Please any one can help me to solve this error? I only got error in this tow .so file. Other all directory compiled successfully.

and Moreover when I type foamInstallationTest in bin directory, I got below error,

Checking basic setup...
-------------------------------------------------------------------------------

FATAL ERROR: OpenFOAM environment not configured.

Please refer to the installation section of the README file:
<OpenFOAM installation dir>/OpenFOAM-1.7.x/README
to source the OpenFOAM environment.

But I already added one line in /.bashrc file and after adding line, I also compiled by typing . ~/.bashrc

please any one can help me to come out from this problem?
Thank a lot

Alpesh

wyldckat March 16, 2011 18:56

Just a little cross-post: Alpesh's post has already been answered in the original post here: http://www.cfd-online.com/Forums/ope...tml#post299754

alvora March 17, 2011 03:29

Dear Bruno Santos,

Thank you very much.. now it's working..

Kind Regards
Alpesh


All times are GMT -4. The time now is 13:10.