The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X Tiger - The Easy Way

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jamie Hill

Posts: 161
Nickname: jamie007
Registered: Nov, 2006

Jamie Hill is Managing Director of SonicIQ Limited in the UK specialising in XHTML, CSS and Rails.
Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X Tiger - The Easy Way Posted: Mar 1, 2007 2:35 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Jamie Hill.
Original Post: Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X Tiger - The Easy Way
Feed Title: The Lucid
Feed URL: http://feeds.feedburner.com/thelucid
Feed Description: Lightweight ramblings and tips on Ruby and Rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Jamie Hill
Latest Posts From The Lucid

Advertisement

Dan Benjamin recently updated his very helpful article entitled “Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X”.

I don’t know about anyone else but compiling software is not one of my favourite pastimes. As I’ve been chopping and changing macs lately I thought I’d write a couple of shell scripts to get things right before running anything on my nice new (freshly installed) MacBook Pro.

Prerequisites

There are a couple of prerequisites in addition to what’s on Dan’s “What’s Needed” list before running the scripts. The first is that you must have MySQL installed as referenced in Dan’s article, and the second being the following:

Ensure you have the following line at the end of your ~/.bash_login file:
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" 
You can add this by typing nano ~/.bash_login then copy and paste the above line into the end of the file. Once this is done, hit ctrl-x to exit, answering ‘y’ to “do you want to save changes” prompt.

The scripts

There are two scripts, 01_osx_rails.sh and 02_osx_image_tools.sh and the following will explain how to use them.

Creating your development environment

The first script will install everything in Dan’s article along with the following gems that I use frequently:
  • rails version 1.1.6 for support of older rails apps
  • bluecloth
  • redcloth
  • sqlite3-ruby
  • ferret
  • ZenTest
  • redgreen

Right… here we go:

(please read the licence before running these scripts as although they have been tested on a clean install of Tiger, I can’t take any responsibility if something breaks)
  1. Download 01_osx_rails.sh to your desktop
  2. If you don’t wish to install all of these gems then open the file in a text editor and comment out the relevant lines with a hash.
  3. Open a new terminal window and type the following:
    cd ~/Desktop
    sh 01_osx_rails.sh
    
  4. Go make a cup of tea and watch all the pretty text scroll before your eyes.

That’s it, you should now have a fully working development environment.

Image tools

I use a couple of image tools on my system, GD and ImageMagick (with RMagick). If you wish to install these tools and the related libraries, run the following:

(This script hasn’t been tested as much as the previous one so use at your own risk. If anyone has any bug fixes then please post a comment)

cd ~/Desktop
sh 02_osx_image_tools.sh

We’re done

Please let me know if I’ve missed anything obvious.

I hope this helps anyone else out there with Compilaphobia!

Read: Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X Tiger - The Easy Way

Topic: method_missing: best saved for last Previous Topic   Next Topic Topic: I got tagged!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use