CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   foam-extend-3.1 and CentOS 6.5 CMake Version Trouble (https://www.cfd-online.com/Forums/openfoam-installation/143547-foam-extend-3-1-centos-6-5-cmake-version-trouble.html)

cdm October 27, 2014 15:54

foam-extend-3.1 and CentOS 6.5 CMake and QT Version Troubles with FIXES
 
I'm testing CentOS 6.5 and was successful in installing OpenFOAM 2.3.0. However, the same cannot be said for foam-extend-3.1.

Is there an easy way to either:

1) update CMake on CentOS 6.5 (I can't find any useful info on Google or the CMake website on how to do this), or

2) get a ThirdParty CMake package such as provided for OpenFOAM 2.3.0 to facilitate the installation of foam-extend-3.1 in CentOS 6.5?

Thanks for the help.

cdm October 27, 2014 17:44

Okay, I was able to (mostly) compile foam-extend-3.1 with the following modifications:

1. As root, I installed CMake 2.8 using instructions from here:

Code:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6.8.noarch.rpm
yum install cmake28
cd /usr/bin
mv cmake cmake26
mv ccmake ccmake26
mv cpack cpack26
mv ctest ctest26
ln -s cmake28 cmake
ln -s ccmake28 ccmake
ln -s cpack28 cpack
ln -s ctest28 ctest

2. Based on this link, I installed binutils-devel and loaded openmpi (since I'm using SYSTEMOPENMPI):

Code:

sudo yum install binutils-devel
module load openmpi-x86_64

3. Pull the git source code, source the bashrc, etc., as outlined here.

4. Created the $HOME/foam/foam-extend-3.1/etc/prefs.sh file with the following settings:

Code:

export FOAM_VERBOSE=1
compilerInstall=System
export WM_MPLIB=SYSTEMOPENMPI
export OPENMPI_DIR=/usr/lib64/openmpi
export OPENMPI_BIN_DIR=$OPENMPI_DIR/bin
export QT_THIRD_PARTY=1

5. Compiling using ./Allwmake.firstInstall > wmake.log 2>&1

Everything is compiling fine except for Paraview which requires Qt4 version 4.7.0 and it's only finding 4.6.2. I'll read through some of the other posts here to look into this, but curious why this is the case if using ThirdParty QT...

Hopefully this will help anyone else struggling with this.

cdm October 27, 2014 18:30

And ParaView compilation issue has been explained here with a fix outlined here.

1. Go into the file $WM_THIRD_PARTY_DIR/Allmake.stage4 and change any reference to QT version 4.8.5 to 4.8.6 (I just opened the file in a text editor and search/replace "4.8.5" with "4.8.6".

2. Same in the file $WM_PROJECT_DIR/etc/settings.sh.

3. Go to the folder $WM_THIRD_PARTY_DIR/rpmBuild/SPECS/ and copy the file qt-everywhere-opensource-src-4.8.5.spec to qt-everywhere-opensource-src-4.8.6.spec, then open the file and again change all references of "4.8.5" to "4.8.6", save, and close.

4. Re-compile and you should be good to go.


All times are GMT -4. The time now is 15:16.