OS X 10.3-10.5 (Panther, Tiger, Leopard)
From DevchixWiki
Contents |
Xcode tools
These are part of OS X, but are not installed by default.
- Insert your OS X DVD. (What to do if you don't have an OS X install DVD)
- Look for Xcode.mkpg - it may be under "Optional Installs"
- Double click to run the installer. It will take a while - the Xcode tools are large.
Git
- On Leopard or Panther: http://code.google.com/p/git-osx-installer/ -- Click "Download the packages here" which will take you to a list of downloads. Pick Intel if you have an Intel Mac, and Universal Binary if you have a PowerPC Mac. (How to tell if you have an Intel or PPC Mac)
- On Tiger: http://metastatic.org/text/Concern/2008/03/08/git-package-1543-for-os-x/
Ruby, RubyGems, and Rails
For Panther and Leopard, follow the directions here: Ruby, RubyGems, and Rails
If you are having this error:
ERROR: Error installing rubygems-update: hoe requires RubyGems version >= 1.3.1
Try the steps in this order:
sudo gem update --system sudo gem install rubygems-update sudo update_rubygems
For Tiger ONLY:
- Install the "X11 User" optional package from your OS X DVD.
- Install MacPorts.
- Ruby:
sudo port install ruby - Gems:
- download RubyGems
- unpack:
tar xzf rubygems-1.3.5.tgz -
cd rubygems-1.3.5 - Install:
ruby setup.rb
- Rails:
sudo gem install rails
SQLite and SQLite Manager Firefox add-on
SQLite
In some cases, SQLite was installed with Rails in the previous section. To check, do gem list in Terminal.app. If the list includes sqlite3-ruby, you're good.
If the list does not include sqlite3-ruby, do sudo gem install sqlite3-ruby in Terminal app.
SQLite Manager Firefox add-on
Step 1 is install Firefox. Even if it's already installed, you may need to upgrade; the add-on requires 3.5 or greater. (How to find out which version of Firefox you have)
Install the SQLite Manager Firefox add-on.
- Open Firefox
- Under the Tools menu, select Add-Ons
- Click Get Add-Ons at the top of the small window that comes up
- In the search box, enter "SQLite" without the quotes
- The first search result should be SQLite Manager.
- If SQLite Manager is not in the search results, you probably have a version of Firefox that is too old. Install a newer version of Firefox and then try again to install the add-on.
- Click the "Add to Firefox..." button.
- Click "Install" in the small window that comes up
- Click "Restart Firefox" in the add-ons window to complete the install. This will preserve the windows you have open, so it should bring you right back to this page.
- Once Firefox has restarted, look under the Tools menu. SQLite Manager should be one of the options.
Install KomodoEdit
We'll be using the KomodoEdit text editor during the workshop, though you are free to use a different editor if you prefer. It must be a plain-text editor, such as vi or Textmate. Microsoft Word and other word processing programs won't work. If in doubt, use KomodoEdit.
Installation steps:
- Download the KomodoEdit installer (available for Intel or PowerPC). (Click here if you're not sure whether you have an Intel or PowerPC Mac.)
- Select "Open with DiskImageMounter" in the file save dialog. This should be the default.
- It will open an installer with a KomodoEdit icon and a picture of your Applications folder. Drag KomodoEdit into your Applications folder.
- Unmount the installer disk image by dragging it from your desktop to the trash.
Other required libraries
Open a Terminal window and type the following with a return at the end of each line:
sudo gem install rspec rspec-rails cucumber cucumber-rails database_cleaner webrat --no-rdoc --no-ri sudo gem install heroku --no-rdoc --no-ri
Verify installation
Make sure you can do everything in the following sections of the Windows install directions (from "Create a Test Application" onwards). Wherever it says "open git bash", substitute "open Terminal."

