CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM-2.3.1 on SLES 10 SP1 (https://www.cfd-online.com/Forums/openfoam-installation/149175-openfoam-2-3-1-sles-10-sp1.html)

Hrushi February 27, 2015 06:30

OpenFOAM-2.3.1 on SLES 10 SP1
 
5 Attachment(s)
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?

wyldckat February 28, 2015 14:39

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

Hrushi March 2, 2015 01:57

1 Attachment(s)
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

Hrushi March 2, 2015 07:57

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

wyldckat March 2, 2015 15:10

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

Hrushi March 3, 2015 01:12

2 Attachment(s)
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

wyldckat March 8, 2015 08:37

Hi Hrushi,

Quote:

Originally Posted by Hrushi (Post 534092)
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

Hrushi March 8, 2015 11:48

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

wyldckat March 8, 2015 12:01

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

Hrushi March 12, 2015 07:18

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

wyldckat March 13, 2015 16:16

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 March 14, 2015 06:53

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 March 14, 2015 07:02

Quote:

Originally Posted by Hrushi (Post 536251)
This is same as the solution you gave for OpenFOAM-2.0.1 at http://www.cfd-online.com/Forums/ope...tml#post354249

:eek: that was almost 3 years ago... well, good thing I managed to re-deduce it again :)


All times are GMT -4. The time now is 14:46.