UCVM on OS X Guide

From SCECpedia
Revision as of 23:09, 5 December 2014 by Davidgil (talk | contribs) (Created page with '== 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, those users on Maveri…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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, those 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) Export a few compiler flags by typing in the Terminal window

export CFLAGS="-Wno-return-type"

.

6) 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