Difference between revisions of "UCVM on OS X Guide"

From SCECpedia
Jump to navigationJump to search
Line 8: Line 8:
  
 
1) Install Xcode from the Mac App Store.<br />
 
1) Install Xcode from the Mac App Store.<br />
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 <pre>sudo xcodebuild -license</pre>.<br />
+
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 <span style="font-family: Courier, serif">sudo xcodebuild -license</span>.<br />
3) Install the Xcode command line tools. To do this, in your Terminal window, please type in <pre>sudo xcode-select --install</pre>. A dialog box will pop-up asking if you want to install the command line tools. Please choose "OK" on this box.<br />
+
3) Install the Xcode command line tools. To do this, in your Terminal window, please type in <span style="font-family: Courier, serif">sudo xcode-select --install</span>. A dialog box will pop-up asking if you want to install the command line tools. Please choose "OK" on this box.<br />
 
4) Install automake and autoconf. In the Terminal, please type <span style="font-family: Courier, serif">sudo port install automake autoconf</span>.<br />
 
4) Install automake and autoconf. In the Terminal, please type <span style="font-family: Courier, serif">sudo port install automake autoconf</span>.<br />
5) Export a few compiler flags by typing in the Terminal window <pre>export CFLAGS="-Wno-return-type"</pre>.<br />
+
5) Export a few compiler flags by typing in the Terminal window <span style="font-family: Courier, serif">export CFLAGS="-Wno-return-type"</span>.<br />
 
6) Run the ucvm_setup.py script that comes with the UCVM tar file bundle.<br />
 
6) Run the ucvm_setup.py script that comes with the UCVM tar file bundle.<br />
  

Revision as of 23:12, 5 December 2014

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