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

foam-extend-3.1 and CentOS 6.5 CMake Version Trouble

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2014, 16:54
Default foam-extend-3.1 and CentOS 6.5 CMake and QT Version Troubles with FIXES
  #1
cdm
Member
 
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13
cdm is on a distinguished road
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.

Last edited by cdm; October 27, 2014 at 19:31.
cdm is offline   Reply With Quote

Old   October 27, 2014, 18:44
Default
  #2
cdm
Member
 
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13
cdm is on a distinguished road
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 is offline   Reply With Quote

Old   October 27, 2014, 19:30
Default
  #3
cdm
Member
 
Join Date: May 2013
Location: Canada
Posts: 32
Rep Power: 13
cdm is on a distinguished road
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.
cdm is offline   Reply With Quote

Reply

Tags
centos 6.5, cmake, foam-extend


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.org] OpenFOAM 2.3.0 on CentOS 6.5 entropies OpenFOAM Installation 33 January 4, 2017 06:01
foam-extend-3.1 on CentOS 6.5 philippose OpenFOAM Installation 0 June 23, 2014 07:04
Ansys v13.0 on CentOS 6.5 cvh ANSYS 0 May 23, 2014 14:58
Error building ParaVIEW 3.12.0 in CentOS 6.5 wjm OpenFOAM Installation 8 February 17, 2014 11:17


All times are GMT -4. The time now is 11:35.