Wiki
Clone wikimofem-joseph / Installation on Red Hat Linux
The following procedure has been tested on Red Hat Enterprise Linux Workstation v. 6.4 & 6.5. If you have any problems, feedback or would like to suggest corrections, please email to cmatgu@googlegroups.com.
(1) Open a terminal and login as root
su
(2) Install prerequisites:
cd /opt yum update yum install gvim yum install wget yum install cmake28 yum install gcc-c++-4.4.7-4.el6.x86_64 yum install hdf5-openmpi-devel.x86_64 yum install netcdf-devel.x86_64 yum install gnuplot yum install git-core yum install doxygen wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm yum install openmpi-devel-1.5.4-2.el6.x86_64 ln -s /usr/lib64/openmpi/bin/mpirun /usr/local/bin/ ln -s /usr/lib64/openmpi/bin/mpiexec /usr/local/bin/ ln -s /usr/lib64/openmpi/bin/mpicc /usr/local/bin/ ln -s /usr/lib64/openmpi/bin/mpicxx /usr/local/bin/ ln -s /usr/lib64/openmpi/bin/mpif90 /usr/local/bin/ ln -s /usr/bin/cmake28 /usr/local/bin/cmake ln -s /usr/bin/ctest28 /usr/local/bin/ctest export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:$LD_LIBRARY_PATH
wget https://bitbucket.org/likask/mofem-joseph/wiki/downloads/build_for_ubuntu.tar.gz tar -xvvzf build_for_ubuntu.tar.gz mv build_for_ubuntu mofem
(4) Install PETSc (Portable, Extensible Toolkit for Scientific Computation)
cd mofem/ tar -xvvzf petsc-3.4.3.tar.gz cd petsc-3.4.3 ./configure --with-debugging=0 --download-superlu_dist=1 --download-metis=1 --download-parmetis=1 --download-umfpack=1 --download-hypre=1 --with-mumps=1 --download-mumps=1 --with-scalapack=1 --download-scalapack=1 --with-blacs=1 --download-blacs=1 --download-f-blas-lapack=1 make PETSC_DIR=/opt/mofem/petsc-3.4.3 PETSC_ARCH=arch-linux2-c-opt all
(5) Install MOAB
cd /opt/mofem/moab-4.6.0 ./configure --with-mpi=/usr/lib64/openmpi/ --prefix=/opt/mofem/local make && make install
(6) Install Boost
cd /opt/mofem tar -xvvzf boost_1_54_0.tar.gz cd boost_1_54_0 ./bootstrap.sh --prefix=/opt/mofem/local ./b2 ./b2 install
(7) Modify MoFEM directory access permissions
chmod aug+rX /opt/mofem
(8) Login as user (open new terminal, or "exit" at previous terminal and navigate to the home directory)
(9) Set environmental variable for OPEN MPI
export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib
(10) Install MoFEM
git init git clone https://bitbucket.org/likask/mofem-joseph.git cd ~/mofem-joseph && git checkout release && cd .. mkdir build_mofem cd build_mofem cmake -DCMAKE_BUILD_TYPE=Release -DPETSC_DIR=/opt/mofem/petsc-3.4.3 -DPETSC_ARCH=arch-linux2-c-opt -DMOAB_DIR=/opt/mofem/local -DCMAKE_CXX_FLAGS="-I/opt/mofem/boost_1_54_0" -DCMAKE_INSTALL_PREFIX=$HOME/local $HOME/mofem-joseph/mofem_v0.1/ make -j4 make install
(11) Test MoFEM
$ ctest -VV -D Experimental
(12) Download and install ParaView
- Install from binaries at http://www.paraview.org/paraview/resources/software.php, or
- Alternatively, build and install from source; see http://paraview.org/Wiki/ParaView:Build_And_Install
The easiest option is to install ParaView from binaries. ParaView can then be run directly from the installed directory. If you would like to set an alias for this location, see step 13 below.
(13) Specify path aliases for MoFEM scripts and executables
By default, MoFEM scripts and executables are located in your home directory under /local/bin. If you want to be able to invoke these from any location without having to specify their absolute path every time you need to use them, you can do the following:
- Open a new terminal or navigate to your home directory
- Open the file .bashrc (this will not be visible from the directory tree) with a text editor by executing:
gedit .bashrc
PATH=$HOME/local/bin:$PATH export PATH export LD_LIBRARY_PATH=/usr/lib64/openmpi/lib:/opt/mofem/petsc-3.4.3/arch-linux2-c-opt/lib:$LD_LIBRARY_PATH
PATH=$HOME/Paraview-X.X.X-Linux-XXbit/bin/:$PATH
You will need to use a new terminal for the changes to take effect.
Updated