/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 |
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 Best regards and good luck! Bruno |
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 |
Hi K.Suresh kumar,
Quote:
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 Code:
git checkout 17cf78 Best regards, Bruno |
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 |
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
|
Dear Bruno Santos,
Thank you very much.. now it's working.. Kind Regards Alpesh |
All times are GMT -4. The time now is 08:11. |