Wiki
Clone wikilifev-release / LifeV_on_MacOS_1012
LifeV on MacOS 10.12 - Sierra
This is meant as a small how-to for installing LifeV on MacOSx 10.12.4.
Remark On March 5th 2018, I (Simone) was not able to use the build_openmpi from the lifev-env. Therefore I suggest to use the installation instructions for openmpi below.
First you have to make sure that C[]{.underline} is natively installed. After installing xcode, run
xcode-select --install
This is usually the case if you installed XCode. You can verify the installation with the following commands:
g++ --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.38) Target: x86_64-apple-darwin16.5.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Make sure that you have a recent version of cmake
installed. I had trouble with cmake 3.7.0_0 and then updated to 3.8.2_0:
sudo port upgrade cmake
gfortran
install gfortran with the MacOSX package dowloaded from\ http://gcc.gnu.org/wiki/GFortranBinaries#MacOS\ and verify that it is well installed:
gfortran --version GNU Fortran (GCC) 6.3.0 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Remark the package also installs other compilers:
ls /usr/local/gfortran/bin/ cpp* gcc* gcc-nm* gcov* gfortran* g++* gcc-ar* gcc-ranlib* gcov-tool*
In my case, the PATH is set such that the system gcc is called.
openmpi
Download openmpi (version 2.1.1 in my case)
tar -xzf openmpi-2.1.1.tar.bz2 cd openmpi-2.1.1 ./configure --prefix=/opt/openmpi make -j 4 sudo make install /opt/openmpi/bin/mpicc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 8.0.0 (clang-800.0.42.1) Target: x86_64-apple-darwin16.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin /opt/openmpi/bin/mpicc -show gcc -I/opt/openmpi/include -L/opt/openmpi/lib -lmpi
Now you are ready to follow the instructions on lifev-env.
Note that you already have installed openmpi in /opt/openmpi
, remember to tell config.sh
export MPI_C_COMPILER=/opt/openmpi/bin/mpicc export MPI_CXX_COMPILER=/opt/openmpi/bin/mpic++ export MPI_FORTRAN_COMPILER=/opt/openmpi/bin/mpif90 export MPI_EXEC=/opt/openmpi/bin/mpiexec
and comment the line
OPENMPI_INSTALL_DIR=${INSTALLS_DIR}/openmpi-${OPENMPI_VERSION}_install${BUILD_TYPE}
VMTK on MacOS 10.12
On this wiki, you may find instruction to install VMTK on MacOS 10.12
Updated