Installation of OpenFOAM 2.3.1 on RHEL 6.3
Hi,
Is it possbile to install OpenFOAM 2.3.1 on RHEL Server 6.3? The latest upgradable GCC version for the system is 4.4.7 while OpenFOAM demands GCC 4.5.0 and above. Any help would be appreciated. Thanks, Jack |
Hi,
Yes, it is possible. You even have two possibilities: 1. Build newer version gcc (using makeGcc script from ThirdParty folder, http://openfoamwiki.net/index.php/In...HEL#CentOS_6.5) 2. Install newer version of Gcc using Sofware Collections (https://access.redhat.com/documentat...e_Collections/). |
Hi Jack,
here comes another way I used [but before try Alexey's suggestion that is a more elegant solution] Similarly to you, I had a redhat server 6.4 Santiago, and gcc 4.4.7 without the possibility to become root. Therefore I did the following: 1) take an hard disk with some GB of space and install on it virtual box portable http://www.vbox.me/ 2) create a virtual machine installing CentOS 6.6 3) follow the instruction from http://www.openfoam.org/download/git.php 4) copy the compiled version of the virtual machine into your redhat 6.4 server 5) modify the environment variables I test some tutorials and they are running well. If you are interested in more details I copy below my diary of command executed: In the virtual machine centOS6.6: as root: Code:
yum install git Code:
cd /home/donQi/OpenFOAM Code:
git clone git://github.com/OpenFOAM/OpenFOAM-2.3.x.git (always as normal user) Code:
tar xzf ThirdParty-2.3.1.tgz Code:
yum groupinstall 'Development Tools' Code:
ln -s /usr/lib64/libboost_thread-mt.so /usr/lib64/libboost_thread.so Code:
gedit ~/.bashrc Code:
export PATH=/usr/lib64/openmpi/bin/:$PATH Code:
source ~/.bashrc mpirun (Open MPI) 1.8.1 then as root: Code:
yum-config-manager --nogpgcheck --add-repo http://springdale.princeton.edu/data/puias/6.5/x86_64/os Code:
source /opt/rh/devtoolset-1.1/enable Code:
source /opt/rh/devtoolset-1.1/enable Code:
gcc (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5) ENVIRONMENT VARIABLES in thunder VirtualMachine where we had /home/donQi/OpenFOAM/ we have just add in ~/.bashrc : Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc foam and you should be in the directory OpenFOAM-2.3.x let's check Code:
foamSystemCheck Code:
System check: PASS Then Code:
cd $WM_PROJECT_DIR Code:
yum install zlib-static Code:
yum install --nogpgcheck zlib-static Code:
./Allwmake > make.log 2>&1 Now back to copy in our server. >> Copying the compiled openFOAM to Redhat6.4 / In the thunder VirtualMachine, copy all the files inside the OpenFOAM directory into the share directory: Code:
sudo su - Then back to the RedHat6.4 machine: we copy the directory from the virtual machine (OpenFOAM-2.3.x, donQi-2.3.x and ThirdParty-2.3.x) into Code:
/net/lnx6/home/donQi/OpenFOAM/thunderCompiled Code:
alias OF23x='. /net/lnx6/home/donQi/OpenFOAM/thunderCompiled/OpenFOAM-2.3.x/etc/bashrc' Code:
foamInstall=/net/lnx6/home/donQi/OpenFOAM/thunderCompiled/ Code:
source ~/.bashrc Code:
[1034 cavity] >> blockMesh |
All times are GMT -4. The time now is 06:15. |