UCVM on OS X Guide

From SCECpedia
Jump to navigationJump to search

Introduction

UCVM is compatible with Linux as well as OS X. However, due to some recent changes that Apple has made to their Xcode development tools, users on Mavericks (OS X 10.9) and Yosemite (OS X 10.10) will need to follow some additional steps to make the installation work.

OS X 10.10 Yosemite

In order to install UCVM on Yosemite, you must follow these steps:

1) Install Xcode from the Mac App Store.
2) Install MacPorts from macports.org. Please note that to install MacPorts you must agree to the Xcode license terms. After running the MacPorts installer, please go to your Terminal and run the command sudo xcodebuild -license.
3) Install the Xcode command line tools. To do this, in your Terminal window, please type in sudo xcode-select --install. A dialog box will pop-up asking if you want to install the command line tools. Please choose "OK" on this box.
4) Install automake and autoconf. In the Terminal, please type sudo port install automake autoconf.
5) Install GCC 4.9. This is required for both CVM-S4 and CVM-S4.26 which have some Fortran code in them. The command to do this is sudo port install gcc49.
6) Select GCC 4.9 by entering sudo port select gcc mp-gcc49.
7) Export the compiler flags by typing in the Terminal window export CFLAGS="-Wno-return-type".
8) Export the linker flags by typing in the Terminal window export LDFLAGS="-L/opt/local/lib/gcc49".
8) Run the ucvm_setup.py script that comes with the UCVM tar file bundle.

OS X 10.9 Mavericks

Installing OS X on Mavericks is possible by following these steps:

1) Please install MacPorts from http://www.macports.org. MacPorts helps install the requirements to compile UCVM.
2) Install Xcode command-line tools. Details for how to install them on Yosemite are here: http://railsapps.github.io/xcode-command-line-tools.html. ​​
3) sudo port install gcc48
​​4) sudo port install gcc_select
​​5) sudo port select gcc mp-gcc48
​​6) sudo port install autoconf automake libtool
​​7) export CFLAGS="-Wno-return-type"
​​8) export LDFLAGS="-L/opt/local/lib/gcc48"
9) Run ucvm_setup.py