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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 ), 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: 17
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Join Date: Jan 2011
Location: Germany
Posts: 52
Rep Power: 15
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   March 17, 2011, 03:29
Default
  #7
Member
 
Alpesh
Join Date: Jan 2011
Location: Germany
Posts: 52
Rep Power: 15
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


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
OpenFOAM 1.7.x on Fedora 13 nuovodna OpenFOAM Installation 33 April 21, 2011 18:58
Ways to find Mass transfer coefficient using CFD? tuks_123 CFX 10 April 15, 2011 12: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 06:51
YPlus nowhere to be find Daniel CFX 3 May 1, 2006 17:22
Can U find this Solution Report N°229 Mohamed FLUENT 5 June 19, 2003 04:28


All times are GMT -4. The time now is 18:27.