CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM

Error in OpenFOAM171 during compling and enviornment set up

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

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

Old   March 16, 2011, 19:54
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
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
wyldckat is offline   Reply With Quote

Old   March 17, 2011, 04:27
Default
  #3
Member
 
Alpesh Vora
Join Date: Jan 2011
Location: Cottbus, Germany
Posts: 47
Rep Power: 5
alvora is on a distinguished road
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
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



All times are GMT -4. The time now is 01:33.