CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Error in OpenFOAM171 during compling and enviornment set up (https://www.cfd-online.com/Forums/openfoam/86182-error-openfoam171-during-compling-enviornment-set-up.html)

alvora March 16, 2011 09:49

Error in OpenFOAM171 during compling and enviornment set up
 
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

wyldckat March 16, 2011 17:54

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

alvora March 17, 2011 02:27

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


All times are GMT -4. The time now is 15:00.