|
[Sponsors] |
November 17, 2011, 21:01 |
compilation failed on OpenSuSE 12.1 x86_64
|
#1 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Dear OpenFOAMers,
I am wondering if anyone encounters the problem I am experiencing and has a solution for it. I received error on scotch and ptscotch. Part of the error below. It looks like this might be due to openmpi. Pei ./dummysizes: error while loading shared libraries: libmpi.so.1: cannot open shared object file: No such file or directory make[2]: *** [scotch.h] Error 127 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/home/phsieh/OpenFOAM/ThirdParty-2.0.x/scotch_5.1.11/src/libscotch' make[1]: *** [ptscotch] Error 2 make[1]: Leaving directory `/home/phsieh/OpenFOAM/ThirdParty-2.0.x/scotch_5.1.11/src/libscotch' make: *** [ptscotch] Error 2 |
|
November 18, 2011, 03:43 |
|
#2 |
New Member
Kris
Join Date: Nov 2010
Posts: 21
Rep Power: 15 |
Hi,
I solved this by opening up OpenFOAM-2.0.x/etc/bashrc and changing two entries: Set gcc to gcc46: #- Compiler: # WM_COMPILER = Gcc | Gcc43 | Gcc44 | Gcc45 | Gcc46 | Clang | Icc (Intel icc) export WM_COMPILER=Gcc46 and use systemopenmpi: #- MPI implementation: # WM_MPLIB = SYSTEMOPENMPI | OPENMPI | MPICH | MPICH-GM | HPMPI # | GAMMA | MPI | QSMPI export WM_MPLIB=SYSTEMOPENMPI Note that you should install openmpi-devel for this to work: sudo zypper install openmpi openmpi-devel After that OpenFOAM should compile without problems. Hope this helps. |
|
November 18, 2011, 04:56 |
|
#3 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Hi, kpsl,
Thanks a lot! Your steps solved this issue. By the way, did you also try compiling paraview? ./makeParaView also failed to compile on OpenSuSE 12.1. I am using the binary version that I downloaded from paraview.org. But, will be nice to know how to resolve the ./makeParaView problem too. Pei |
|
November 18, 2011, 06:42 |
|
#4 |
New Member
Kris
Join Date: Nov 2010
Posts: 21
Rep Power: 15 |
edit the file
ParaView-3.10.1/VTK/Utilities/vtkmetaio/metaUtils.cxx and include the line: #include <stddef.h> Afterwards paraview will compile without any problems. Good luck! |
|
November 18, 2011, 12:25 |
|
#5 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
For paraview, upgrading to paraview-3.12.0 does the job too. See http://albertopassalacqua.com/?p=1080 for a quick guide.
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
November 18, 2011, 12:58 |
|
#6 |
Senior Member
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18 |
Thanks Kris,
Paraview-3.10 compiled successfully now. Also, Thanks Alberto! I will give Paraview-3.12 a try. Pei |
|
November 30, 2011, 06:58 |
|
#7 |
New Member
Join Date: Jul 2009
Location: Prague
Posts: 28
Rep Power: 0 |
Hi to all,
I have same problem. I made recommended changes but still same result. Here is part of my log ./dummysizes library.h scotch.h ./dummysizes: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory make[2]: *** [scotch.h] Error 127 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/home/birkov/OpenFOAM/ThirdParty-2.0.x/scotch_5.1.11/src/libscotch' make[1]: *** [ptscotch] Error 2 make[1]: Leaving directory `/home/birkov/OpenFOAM/ThirdParty-2.0.x/scotch_5.1.11/src/libscotch' make: *** [ptscotch] Error 2 + make realclean I have tried reinstall openmpi and openmpi-devel. I went through step by step this tutorial http://albertopassalacqua.com/?p=1080. When I tried this tutorial on virtual system everything was good. Thank you for your advice. B. |
|
November 30, 2011, 14:15 |
|
#8 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
What does (run it using the same user who launches OpenFOAM)
mpi-selector --list say?
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
November 30, 2011, 14:46 |
|
#9 |
New Member
Join Date: Jul 2009
Location: Prague
Posts: 28
Rep Power: 0 |
say the same thing as in your tutorial.
openmpi-1.4.3 Thank you! (for your response but I did everything by your tutorial and for me there is no way how to solve this problem) Last edited by Birkov; December 1, 2011 at 08:11. |
|
December 6, 2011, 07:13 |
|
#10 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@Birkov: I don't know if you managed to solve your problem and I completely forgot to reply to you after I read your posts a few days ago. I came across a problem back in July which seems to be the same one as yours: Quote:
Best regards, Bruno
__________________
|
||
December 6, 2011, 09:38 |
|
#11 |
New Member
Join Date: Jul 2009
Location: Prague
Posts: 28
Rep Power: 0 |
Thank you for your comment wyldckat.
I still have the problem and I tried almost everything that I found (not "everything") but still same error. I'll try do some test in my virtual system (I'll install OpenFOAM on my work computer too so maybe here I'll find the reason "why") Anyway thank you. B. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Transient boundary conditions | Jarrod Sinclair (Sinclair) | OpenFOAM Running, Solving & CFD | 133 | May 6, 2015 06:21 |
DeardorffDiffStress turbulence model | Zuixy | OpenFOAM Running, Solving & CFD | 0 | November 14, 2011 08:44 |
[OpenFOAM] ParaView/Parafoam error when making animation | Disco_Caine | ParaView | 6 | September 28, 2010 09:54 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 06:31 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |