|
[Sponsors] |
Error in OpenFOAM171 during compling and enviornment set up |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 16, 2011, 10:49 |
Error in OpenFOAM171 during compling and enviornment set up
|
#1 |
Member
Alpesh
Join Date: Jan 2011
Location: Germany
Posts: 52
Rep Power: 15 |
Hello friends,
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 |
|
March 16, 2011, 18:54 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Alpesh,
I've got a feeling you're mixing two different sets of instructions, namely: Pick one and only one of those pages and stick to it I say this because the instructions for Ubuntu do not tell you to build OpenFOAM nor to run Allwmake! It's already built and ready to use when you do the "apt-get install openfoam171" command! The foamInstallationTest script will not work properly with this Ubuntu version, because the Ubuntu version is ready to use and there shouldn't be any doubts about it Therefore there is no need for this script to work, because the installation simply should work out-of-the-box OK ok, after re-reading your post, it seems that metis is the only one that isn't working. Well, according to your post, you won't need it because you should have scotch, which has almost the same capabilities of metis, if not more in some cases, and scotch has a more free license than metis. Best regards and good luck! Bruno
__________________
|
|
March 17, 2011, 03:27 |
|
#3 |
Member
Alpesh
Join Date: Jan 2011
Location: Germany
Posts: 52
Rep Power: 15 |
Dear Bruno Santos,
Thank you very much.. I tried to change chtMultiRegionFoam and it's working nice... Thank you very much for your reply.. Kind Regards Alpesh |
|
|
|