Documentation‎ > ‎

LifeV on MacOsX

Installing LifeV on Mac OSX 10.8


Installing LifeV on MacOSx 10.6.8

First you have to make sure that MPI is natively installed. This is usually the case if you installed XCode. You can verify the installation with the following commands:
g++ --version
  i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
which mpicxx
  /usr/bin/mpicxx
mpicxx -show
  g++ -D_REENTRANT -Wl,-u,_munmap -Wl,-multiply_defined,suppress -lmpi_cxx -lmpi -lopen-rte -lopen-pal



TPLs (Third party library)

Lib versions

  • gfortran 4.5.0
  • Boost-1_45_0
  • Parmetis-3.1.1
  • hdf5
  • umfpack 5.2.x
  • amd 2.2.0
  • SuiteSparse-3.2.0
  • trilinos 

gfortran

install gfortran with the following MacOSX package:

 http://quatramaran.ens.fr/~coudert/gfortran/gfortran-4.5.0-x86_64-SnowLeopard.dmg

and verify that it is well installed:
which gfortran
  /usr/local/bin/gfortran
gfortran --version
  GNU Fortran (GCC) 4.5.1 20100506 (prerelease)

Boost

Dowload boost, then run
http://www.boost.org/doc/libs/1_50_0/more/getting_started/unix-variants.html

The most reliable way to get a copy of Boost is to download a distribution from SourceForge:

  1. Download boost_1_50_0.tar.bz2.

  2. In the directory where you want to put the Boost compilation, execute

    tar --bzip2 -xf ~/Downloads/boost_1_50_0.tar.bz2 


Set the LIB_BOOST_INSTALL variable to where you wnat to install boost, e.g.:

LIB_BOOST_INSTALL=$HOME/lib/boost-1.50/

cd boost_1_50_0

./bootstrap.sh --with-toolset=
darwin

./b2 --prefix=${LIB_BOOST_INSTALL} toolset=darwin --without-chrono --without-date_time --without-exception --without-filesystem --without-graph --without-graph_parallel --without-iostreams --without-locale --without-math --without-mpi --without-program_options --without-python --without-random --without-regex --without-serialization --without-signals --without-system --without-test --without-thread --without-timer --without-wave  stage


./b2 --prefix=${LIB_BOOST_INSTALL} toolset=darwin --without-chrono --without-date_time --without-exception --without-filesystem --without-graph --without-graph_parallel --without-iostreams --without-locale --without-math --without-mpi --without-program_options --without-python --without-random --without-regex --without-serialization --without-signals --without-system --without-test --without-thread --without-timer --without-wave  install


Other TPL libraries: Parmetis and UMFPACK

Parmetis 3.2.0 and UMFPACK are available on our git serve. If you have an account, you can dowload them here:

git clone USERNAME@cmcsforge.epfl.ch:/gitroot/lifev/lifev-tpl

(Otherwise you have to download them and install them yourself.)

Enter the Parmetis-3.2.0 directory and follow the instructions in the README_INSTALL.txt file
In particular: modify the first line of the Makefile and run
make install


Enter the UMFPACK directory and follow the instructions in the README_INSTALL.txt file
In particular modify the first line of the Makefile and many variables in UFconfig/UFconfig.mk. Then run
make install

HDF5
Download hdf5 at http://www.hdfgroup.org/ftp/HDF5/current/src/
Unpack it:
tar -z -xf ~/Downloads/hdf5-1.8.9.tar.gz
ou
tar -xf ~/Downloads/hdf5-1.8.9.tar

Then configure, compile, and install:
cd
hdf5-1.8.9

mkdir opt
cd opt
../configure --prefix=$HOME/lib/hdf5-1.8.9 --without-ssl --with-zlib --without-mpe --without-pablo --with-szlib=/sw --without-gass --without-srb --without-pthread --enable-parallel CC=/usr/bin/mpicc

make -j3
make install

Trilinos

Download the latest version of  trilinos from their website and install it. As example, you can dowload the file do-configure-trilinos-opt.sh (see below).
If you have an account on cmcsforge, you can also download trilinos from there:

git clone USERNAME@cmcsforge.epfl.ch:/gitroot/lifev/trilinos-10

mkdir trilinos-opt

cd trilinos-opt

mv ~/Downloads/do-configure-trilinos-opt.sh .

You may want to modify it: BASE_DIR must point to the directory where you have the source files and INSTALL_DIR where you put your libraries. Also check the other variables for the correct PATH.

emacs do-configure-trilinos-opt.sh

chmod u+x do-configure-trilinos-opt.sh

./do-configure-trilinos-opt.sh

make -j4 install

LifeV

Download the latest version of  lifev from git. As example, you can dowload the file do-configure-kufev-opt.sh (see below).
If you have an account on cmcsforge, you can also download trilinos from there:

git clone USERNAME@cmcsforge.epfl.ch:/gitroot/lifev/lifev

cd lifev

git clone USERNAME@cmcsforge.epfl.ch:/gitroot/lifev/cmake

cd ..

mkdir lifev-opt

cd lifev-opt

mv ~/Downloads/do-configure-lifev-opt.sh .

You may want to modify it: BASE_DIR must point to the directory where you have the source files and INSTALL_DIR where you put your libraries. Also check the other variables for the correct PATH.

emacs do-configure-lifev-opt.sh

chmod u+x do-configure-lifev-opt.sh

./do-configure-lifev-opt.sh

make -j4
ċ
do-configure-lifev-opt.sh
(2k)
Simone Deparis,
Jul 20, 2012, 6:00 AM
ċ
do-configure-trilinos-opt.sh
(3k)
Simone Deparis,
Jul 20, 2012, 6:00 AM
Comments