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

[OpenFOAM.org] OpenFOAM-2.3.1 on SLES 10 SP1

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By Hrushi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2015, 07:30
Default OpenFOAM-2.3.1 on SLES 10 SP1
  #1
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16
Hrushi is on a distinguished road
I am trying to build OpenFOAM-2.3.1 on SLES 10 SP1.

I tried with GCC-4.5.2 (gmp-5.0.1, mpfr-2.4.2, mpc-0.8.1) and binutils-2.20.1 packages. I edited settings.sh file so that openFOAM can recognize Gcc45 compiler. I tried with Gcc-4.5.2 as official instruction state Gcc compiler version should be higher than 4.5.0

For CGAL, I used boost_1_54_0 and gmp-5.0.1, mpfr-2.4.2. (mkCGAL.zip)

For paraview-3.12, I used cmake-2.8.12.1 and qt-4.8.4 packages.

OpenFOAM-2.3.1 (make-sum.log.tar.gz) as well as ParaView4.1 (mkPV-zip) didn't get built.

I am attaching log files.

Can anybody help me in this?
Attached Files
File Type: zip mkPV-1.zip (18.9 KB, 1 views)
File Type: zip mkPV-2.zip (88.8 KB, 1 views)
File Type: gz make-sum.log.tar.gz (23.9 KB, 2 views)
File Type: zip mkCGAL-1.zip (38.2 KB, 1 views)
File Type: zip mkCGAL-2.zip (59.5 KB, 1 views)
Hrushi is offline   Reply With Quote

Old   February 28, 2015, 15:39
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 Hrushi,

From what I'm able to diagnose, it seems that:
  • The installation of ParaView failed either due to a disk access problem, or a few files were missing for some reason. Nonetheless, it seems to have managed to install most of the necessary files, therefore it seems OK.
  • The compilation of CGAL and Boost seems to have worked just fine.
  • The compilation of OpenFOAM and Scotch failed due to a bad Flex and possible due to a bad Bison installation; more specifically, the versions of each being used. Try the latest Flex version and the Bison version 2.7.0.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 2, 2015, 02:57
Default
  #3
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16
Hrushi is on a distinguished road
Hi Bruno,

Quote:
The compilation of OpenFOAM and Scotch failed due to a bad Flex and possible due to a bad Bison installation; more specifically, the versions of each being used. Try the latest Flex version and the Bison version 2.7.0.
I checked for Flex version. But I forgot to build flex initially. Now I tried with flex 2.5.35. OpenFOAM seems to got compiled. However, there is still problem with Paraview-3.12 installation. I have attached the log file.

Regards
Hrushi
Attached Files
File Type: gz mkof.log.tar.gz (5.1 KB, 1 views)
Hrushi is offline   Reply With Quote

Old   March 2, 2015, 08:57
Default
  #4
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16
Hrushi is on a distinguished road
I managed to get openfoam running in parallel mode on single machine.

I am not able to run openFoam solvers in parallel on multiple machines (nodes).

I tried with openmpi-1.6.5 and openmpi-1.4.1.

I used the following command.

Code:
foamJob -p interFoam
Following error comes:

Code:
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
interFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
interFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
interFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
interFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
interFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
interFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
interFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
interFoam: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
Regards

The above error comes with both openmpi-1.6.5 and openmpi-1.4.1 versions.

Hrushi

Last edited by Hrushi; March 2, 2015 at 09:38. Reason: To provide additional and missing information in the post.
Hrushi is offline   Reply With Quote

Old   March 2, 2015, 16:10
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Hrushi,

Regarding ParaView, try building ParaView 4.1.0, by using the makeParaView4 script. Try using the information on step #18 from these instructions: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10

Regarding running in parallel:
  • I need to know how exactly are you setting up the shell environment for using OpenFOAM for choosing each Open-MPI version? Namely what changes did you make in OpenFOAM's "bashrc", "settings.sh" and how are you sourcing OpenFOAM's "bashrc".
  • And I need to know how you're selecting each Open-MPI version.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 3, 2015, 02:12
Default
  #6
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16
Hrushi is on a distinguished road
Hi Bruno,

Quote:
Regarding ParaView, try building ParaView 4.1.0, by using the makeParaView4 script. Try using the information on step #18 from these instructions: http://openfoamwiki.net/index.php/In...EL#CentOS_5.10
Yes. Paraview 4.1.0 has been successfully built by following instructions in the above link. I have attached the log file.

Quote:
I need to know how exactly are you setting up the shell environment for using OpenFOAM for choosing each Open-MPI version? Namely what changes did you make in OpenFOAM's "bashrc", "settings.sh" and how are you sourcing OpenFOAM's "bashrc".
I changed the version of openmpi in settings.sh from 1.6.5 to 1.4.1.

Code:
export FOAM_MPI=openmpi-1.4.1
Then I again built the openFoam.

In my personal .bashrc file, I have following line

Code:
alias of231='source /Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc WM_NCOMPPROCS=8 foamCompiler=ThirdParty WM_COMPILER=Gcc45 WM_MPLIB=OPENMPI'
Regards

Hrushi
Attached Files
File Type: zip mkPV-1.zip (26.4 KB, 1 views)
File Type: zip mkPV-2.zip (96.9 KB, 1 views)
Hrushi is offline   Reply With Quote

Old   March 8, 2015, 09:37
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Hrushi,

Quote:
Originally Posted by Hrushi View Post
I changed the version of openmpi in settings.sh from 1.6.5 to 1.4.1.

Code:
export FOAM_MPI=openmpi-1.4.1
Then I again built the openFoam.

In my personal .bashrc file, I have following line

Code:
alias of231='source /Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc WM_NCOMPPROCS=8 foamCompiler=ThirdParty WM_COMPILER=Gcc45 WM_MPLIB=OPENMPI'
Regards
Changing the Open-MPI version to 1.4.1 is pointless, unless you have the source code for it in the folder "ThirdParty-2.3.1".
Because if Open-MPI 1.4.1 is installed in your system, you should instead use this setting:
Code:
WM_MPLIB=SYSTEMOPENMPI
in the alias command you have in your ".bashrc" file.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   March 8, 2015, 12:48
Default
  #8
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16
Hrushi is on a distinguished road
Hi Bruno,

Quote:
Changing the Open-MPI version to 1.4.1 is pointless, unless you have the source code for it in the folder "ThirdParty-2.3.1".
Because if Open-MPI 1.4.1 is installed in your system, you should instead use this setting:
Code:
WM_MPLIB=SYSTEMOPENMPI
in the alias command you have in your ".bashrc" file.
Yes, I do have the source code for openmpi-1.4.1 in the folder "ThirdParty-2.3.1". I copied that from Thirdparty-1.7 folder.

I decided to try openMPI-1.4.1 beacuse with openMPI-1.6.1, I got the error as described in my previous reply. But the same error appeared with OpenMPI-1.4.1 version also.

Regards

Hrushi
Hrushi is offline   Reply With Quote

Old   March 8, 2015, 13:01
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Hrushi,

Sorry, now I know what the problem is. This was fixed on this bug report recently: http://www.openfoam.org/mantisbt/view.php?id=231 - it's now already available on 2.3.x.

For 2.3.1, download the two files "foamExec" and "foamJob" from that bug report, then place the two of them in the folder "OpenFOAM-2.3.1/bin". This will fix your problem! Oh, and don't forget to set permissions for execution for them:
Code:
foam
chmod +x bin/foamExec bin/foamJob
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 12, 2015, 08:18
Default
  #10
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16
Hrushi is on a distinguished road
Hi Bruno,

Quote:
For 2.3.1, download the two files "foamExec" and "foamJob" from that bug report, then place the two of them in the folder "OpenFOAM-2.3.1/bin". This will fix your problem! Oh, and don't forget to set permissions for execution for them:
Code:
foam chmod +x bin/foamExec bin/foamJob
I downloaded both the files from above link and placed them in OpenFOAM-2.3.1/bin. I also set the permission for execution for these files.

However, same error appears after running interFoam solver using foamJob script.

Code:
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/etc/config/settings.sh: line 372: mpicc: command not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/bin/foamExec: line 145: exec: interFoam: not found
/Storage1/cfd/OpenFOAM/OpenFOAM-2.3.1/bin/foamExec: line 145: exec: interFoam: not found
What can be the reason?

Regards
Hrushi
Hrushi is offline   Reply With Quote

Old   March 13, 2015, 17:16
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Hi Hrushi,

OK, then we will have to resort to a better solution. These steps are assuming that the settings being used are meant to be global and not only personal:
  1. Go into OpenFOAM's "etc" folder:
    Code:
    foam
    cd etc
  2. Create the file "prefs.sh" and place the contents you had in the alias. For example, you can do this by running:
    Code:
    echo export WM_NCOMPPROCS=8 >> prefs.sh
    echo export foamCompiler=ThirdParty  >> prefs.sh 
    echo export WM_COMPILER=Gcc45  >> prefs.sh 
    echo export WM_MPLIB=OPENMPI  >> prefs.sh
  3. Then try running foamJob the same way you did.
Best regards,
Bruno
Hrushi likes this.
__________________

Last edited by wyldckat; March 14, 2015 at 07:31. Reason: added "export"
wyldckat is offline   Reply With Quote

Old   March 14, 2015, 07:53
Default
  #12
Member
 
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16
Hrushi is on a distinguished road
Hi Bruno,

Quote:
Create the file "prefs.sh" and place the contents you had in the alias. For example, you can do this by running:
Code:
echo export WM_NCOMPPROCS=8 >> prefs.sh echo export foamCompiler=ThirdParty >> prefs.sh echo export WM_COMPILER=Gcc45 >> prefs.sh echo export WM_MPLIB=OPENMPI >> prefs.sh
Yes, This solved the issue. This is same as the solution you gave for OpenFOAM-2.0.1 at http://www.cfd-online.com/Forums/ope...tml#post354249
wyldckat likes this.
Hrushi is offline   Reply With Quote

Old   March 14, 2015, 08:02
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Quote:
Originally Posted by Hrushi View Post
This is same as the solution you gave for OpenFOAM-2.0.1 at http://www.cfd-online.com/Forums/ope...tml#post354249
that was almost 3 years ago... well, good thing I managed to re-deduce it again
wyldckat is offline   Reply With Quote

Reply


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
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 09:51
[OpenFOAM.org] Install OpenFOAM 2.3.1 on cluster with Intel Compiler syavash OpenFOAM Installation 8 September 4, 2018 10:08
[OpenFOAM.org] Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04 masoudshao OpenFOAM Installation 10 August 9, 2018 07:13
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
[OpenFOAM.org] Problem of openFOAM 2.3.1 installation in Ubuntu 14.04LTS mukut OpenFOAM Installation 9 January 19, 2015 01:48


All times are GMT -4. The time now is 08:44.