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.
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.
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!
We recommend Text Wrangler or Sublime Text.
We recommend the all-in-one scientific Python installer Anaconda.
bash Anaconda-and then press tab. The name of the file you just downloaded should appear.
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).
python swc-installation-test-1.pyand press enter. The script confirms that your default Python version is correct for the bootcamp. Success is indicated by the word
Passed
.
python swc-installation-test-2.pyand 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.