CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

compilation failed on OpenSuSE 12.1 x86_64

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

Like Tree2Likes
  • 1 Post By kpsl
  • 1 Post By alberto

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2011, 22:01
Default compilation failed on OpenSuSE 12.1 x86_64
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   November 18, 2011, 04:43
Default
  #2
New Member
 
Kris
Join Date: Nov 2010
Posts: 21
Rep Power: 15
kpsl is on a distinguished road
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.
anon_a likes this.
kpsl is offline   Reply With Quote

Old   November 18, 2011, 05:56
Default
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
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
phsieh2005 is offline   Reply With Quote

Old   November 18, 2011, 07:42
Default
  #4
New Member
 
Kris
Join Date: Nov 2010
Posts: 21
Rep Power: 15
kpsl is on a distinguished road
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!
kpsl is offline   Reply With Quote

Old   November 18, 2011, 13:25
Default
  #5
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
For paraview, upgrading to paraview-3.12.0 does the job too. See http://albertopassalacqua.com/?p=1080 for a quick guide.
kpsl likes this.
__________________
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.
alberto is offline   Reply With Quote

Old   November 18, 2011, 13:58
Thumbs up
  #6
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Thanks Kris,

Paraview-3.10 compiled successfully now.

Also, Thanks Alberto! I will give Paraview-3.12 a try.

Pei
phsieh2005 is offline   Reply With Quote

Old   November 30, 2011, 07:58
Default
  #7
New Member
 
Join Date: Jul 2009
Location: Prague
Posts: 28
Rep Power: 0
Birkov is on a distinguished road
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.
Birkov is offline   Reply With Quote

Old   November 30, 2011, 15:15
Default
  #8
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
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.
alberto is offline   Reply With Quote

Old   November 30, 2011, 15:46
Default
  #9
New Member
 
Join Date: Jul 2009
Location: Prague
Posts: 28
Rep Power: 0
Birkov is on a distinguished road
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 09:11.
Birkov is offline   Reply With Quote

Old   December 6, 2011, 08:13
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
Originally Posted by http://albertopassalacqua.com/?p=973#div-comment-15403
The following post should contain some information that might be useful to all: http://www.cfd-online.com/Forums/ope...tml#post317607 - Post #56
To sum up:
* it’s easier to use “mpi-selector-menu”, since it’s more interactive
* it’s necessary to logout and log back in for the selection to take effect.
* the package “openmpi-devel” is also necessary.
It should be as simple as logging out and logging back in.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 6, 2011, 10:38
Default
  #11
New Member
 
Join Date: Jul 2009
Location: Prague
Posts: 28
Rep Power: 0
Birkov is on a distinguished road
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.
Birkov is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Transient boundary conditions Jarrod Sinclair (Sinclair) OpenFOAM Running, Solving & CFD 133 May 6, 2015 07:21
DeardorffDiffStress turbulence model Zuixy OpenFOAM Running, Solving & CFD 0 November 14, 2011 09:44
[OpenFOAM] ParaView/Parafoam error when making animation Disco_Caine ParaView 6 September 28, 2010 10:54
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31
user defined function cfduser CFX 0 April 29, 2006 11:58


All times are GMT -4. The time now is 18:47.