ug4
Prerequisites on Mac OSX

Before installing something on a Mac, make sure things aren't already installed by some other user by checking the appropriate commands in the terminal (gcc –version and cmake –version).

MacOS Versions are:

  • MacOS X 10.5 Leopard
  • MacOS X 10.6 Snow Leopard
  • MacOS X 10.7 Lion
  • MacOS X 10.8 Mountain Lion
  • MacOS X 10.9 Mavericks -> goto GCC on MacOS X 10.9 Mavericks .

You can obtain your version by clicking on the apple in the left upper corner -> "about this mac". The terminal is located in Programs -> utilities (Dienstprogramme) -> Terminal.


Installation of UG4

Please follow the description at https://github.com/UG4/ughub to obtain a copy of ug4. Below you'll find hints on how to obtain additional software which is required to build ug4.


CMake


  • Download CMake: Download the CMake 2.8.12 dmg-file (see also here. (! minimum version 2.8.10 !)
  • Install CMake on your computer. Install the command line tools, when requested during installation.
  • Open a terminal window. Enter cmake. If you see some output cmake version ... CMake has been installed correctly.

GCC on MacOS X 10.9 Mavericks


In order to use UG4 with MacOS X 10.9 Commandline Tools should be installed properly. This can be done be entering the following command into Terminal:

xcode-select --install
Note
There have been some problems with old cmake versions and mavericks, especially after upgrading your system. Make sure you have cmake 2.8.12.

GCC on MacOS X <= 10.8


Easiest way is to use Kenneth Reitz' page on gcc/command line utilities: https://github.com/kennethreitz/osx-gcc-installer/ .

Another way is to use the Apple homepage:

Note
XCode, installed through the AppStore, will not provide you with command line utilities.
you can install Macports and upgrade your compilers then.

Additional Software


Highly recommended:

You can install most of this with uginstall - Scripts for installation.

If you need fortran/gfortran on Mountain Lion: http://web.mit.edu/mfloyd/www/computing/mac/gfortran/, sudo ln -s /usr/bin/gfortran-4.2 /usr/bin/gfortran.