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

/usr/bin/ld: cannot find -lincompressibleRASModels (OF-1.7.x)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 24, 2010, 07:17
Default /usr/bin/ld: cannot find -lincompressibleRASModels (OF-1.7.x)
  #1
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 8
kumar is on a distinguished road
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
kumar is offline   Reply With Quote

Old   November 24, 2010, 18:31
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: Error after "git pull" and ./Allwmake - And yes, my advice is to read the whole thread (er, starting from post #2 ), just in case you don't want to rebuild the whole OpenFOAM toolbox

Best regards and good luck!
Bruno
wyldckat is offline   Reply With Quote

Old   November 25, 2010, 07:57
Default
  #3
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 8
kumar is on a distinguished road
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
kumar is offline   Reply With Quote

Old   November 25, 2010, 11:38
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi K.Suresh kumar,

Quote:
Originally Posted by kumar View Post
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
wyldckat is offline   Reply With Quote

Old   March 16, 2011, 10:57
Default Error in OpenFOAM171 during compling and enviornment set up
  #5
Member
 
Alpesh Vora
Join Date: Jan 2011
Location: Cottbus, Germany
Posts: 47
Rep Power: 6
alvora is on a distinguished road
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
alvora is offline   Reply With Quote

Old   March 16, 2011, 18:56
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Just a little cross-post: Alpesh's post has already been answered in the original post here: Error in OpenFOAM171 during compling and enviornment set up
wyldckat is offline   Reply With Quote

Old   March 17, 2011, 03:29
Default
  #7
Member
 
Alpesh Vora
Join Date: Jan 2011
Location: Cottbus, Germany
Posts: 47
Rep Power: 6
alvora is on a distinguished road
Dear Bruno Santos,

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

Kind Regards
Alpesh
alvora is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7.x on Fedora 13 nuovodna OpenFOAM Installation 33 April 21, 2011 17:58
Ways to find Mass transfer coefficient using CFD? tuks_123 CFX 10 April 15, 2011 11:20
OpenFOAM 1.6.x, 1.7.0 and 1.7.x are not fully prepared to work with gcc-4.5.x wyldckat OpenFOAM Bugs 18 October 21, 2010 05:51
YPlus nowhere to be find Daniel CFX 3 May 1, 2006 16:22
Can U find this Solution Report N229 Mohamed FLUENT 5 June 19, 2003 03:28


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