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.0 Installation Problem on CentOS 6.6 (https://www.cfd-online.com/Forums/openfoam-installation/143945-openfoam-2-3-0-installation-problem-centos-6-6-a.html)

shenzhou1987 November 6, 2014 03:42

OpenFOAM 2.3.0 Installation Problem on CentOS 6.6
 
Hello everyone!
Recently I'm installing OpenFOAM 2.3.0 on CentOS6.6, and it's a Virtual Machine built by VMware 10. According to the guide of source installation, I have installed gcc, openmpi and everything. Before beginning installation I checked their version by executing cmd in the terminal like this:
$gcc --version
$mpirun --version
And everything is OK, it shows gcc 4.7.2 and mpirun (Open MPI) 1.8.1.
Following the guide I added these words into .bashrc:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc
then I executed cmd:
$source .bashrc
No errors are reported, but when I check the version of mpirun again, the problem occured.
After I entered cmd $mpirun --version, it showed words as follow.
-----------------------------------------------------------------
Sorry! You were supposed to get help about:
opal_init:startup:internal-failure
But I couldn't open the help file:
/home/shenzhou1987/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/openmpi-1.6.5/share/openmpi/help-opal-runtime.txt: No such file or directory.Sorry!
-----------------------------------------------------------------
I don't know whether it's OK.And if I remove 'source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc' from file .bashrc, it will not appear. But in order to install OpenFOAM, I have to add these words into .bashrc. Then I execute './Allwmake' in folder 'OpenFOAM-2.3.0', and during the installation a warning message is reported as follow.
checking whether PMPI is enabled... no
configure: WARNING:***************************************
configure: WARNING:***VampirTrace cannot be built due to disabled MPI profiling.
configure: WARNING:***Pausing to give you time to read this message...
configure: WARNING:***************************************
So I don't know whether it will affect the installation or not. Can anybody give me some advice? Thank you.

wyldckat December 14, 2014 13:34

Greetings shenzhou1987 and welcome to the forum!

Sorry for the really late reply, but I only managed to test the following (unofficial) instructions on CentOS 6.6 last week and they worked just fine: http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5

This to say that the problems you're witnessing are probably due to 2 possible situations:
  1. There is a conflict between the custom OpenFOAM 1.6.5 version that OpenFOAM built, versus the 1.8.1 you have installed in your system.
  2. There might be a conflict of gcc vs g++ versions:
    Code:

    gcc --version
    g++ --version

    If they are different, then it's natural that things are not working as intended.
If you choose to follow the installation instructions from the wiki, keep in mind that they will instruct you to build another GCC version, namely 4.8.1.

Best regards,
Bruno


All times are GMT -4. The time now is 10:25.