Setup Instructions for Max OS/X

Mac OS X / Bash

The default shell in all versions of Mac OS X is bash, so no need to install anything. You access bash from the Terminal (found in /Applications/Utilities). You may want to keep Terminal in your dock for this workshop.

Mac OS X / Git

For the Anacoda version of Python (see below), and for a lot of other scientific computing software, Mac users need a C/C++ compiler on their computer. The way to get that is to install Xcode. Git comes as part of the Xcode tools.

For Mac OS X 10.7 and 10.8:

  1. Go to the Xcode website.
  2. Get Xcode 4.6.3 or later (but not Xcode 5) from the App Store.
  3. Open Xcode.
  4. Open Xcode > Preferences.
  5. Go to the downloads tab.
  6. Press install next to command line tools. Git is included in the command line tools.

For Mac OS X 10.6

The Xcode for Mac OS X 10.6 doesn't include git. Xcode is a nice thing to have because of its C/C++ compiler, but you don't have to download it. If you do want to download it and you have time, see below. In any case, install just git. Choose the most recent version. You may have to add /usr/local/git/bin to your PATH.

Installing Xcode on Mac OS 10.6 (Optional): Go to the Apple developer site. You have to sign in with an Apple ID linked to a Developer account. If you don't have one, you can register and create one. (It's lame, I know, that's why it's done through the App Store now.) Then, once you log in, go to page 8 and find "Xcode 3.2.6 and iOS SDK 4.3 for Snow Leopard" near the top. Click to open that section, and then download the .dmg file. It's 4.14 Gb, so leave some time to download this one. But it's worth it for the compiler!

Mac OS X / Editor

We recommend Text Wrangler or Sublime Text.

Mac OS X / Python

We recommend the all-in-one scientific Python installer Anaconda.

  1. Download the non-GUI installer (MacOSX (10.5 or higher - bash installer) 64-bit) and save it in your home folder.
  2. Open a terminal window.
  3. Type
    bash Anaconda-
    and then press tab. The name of the file you just downloaded should appear.
  4. Press enter. You will follow the text-only prompts. When there is a colon at the bottom of the screen press the down arrow to move down through the text. Type yes and press enter to approve the license. Press enter to approve the default location for the files. Type yes and press enter to prepend Anaconda to your PATH (this makes the Anaconda distribution the default Python).

Mac OS X / Setup Check

  1. Download the swc-installation-test-1.py script and save it in your home folder.
  2. Open a terminal window (or reuse the one that you used to install Anaconda above).
  3. Type
    python swc-installation-test-1.py
    and press enter. The script confirms that your default Python version is correct for the bootcamp. Success is indicated by the word Passed.
  4. Download the swc-installation-test-2.py script and save it in your home folder.
  5. In the terminal window type
    python swc-installation-test-2.py
    and press enter. The script confirms that you have bash, git, a code editor, and the Python libraries that we will use in the bootcamp have been installed. It prints a collection of success and/or failure messages.

If either script fails, please contact Doug at dlatornell@eos.ubc.ca or in ESB-3053.

Home