Custom Search

Mac OS X 10.5 (leopard) setup for Rails

May 24, 2008 – 12:16 am

1.    Install Xcode 3.0 or newer
2.    Make the following entries exist in /etc/profile

  • export RC_ARCHS=i386
  • export DYLD_LIBRARY_PATH=”/usr/local/oracle/instantclient”
  • export SQLPATH=”/usr/local/oracle/instantclient”
  • export PATH=”/usr/local/oracle/instantclient:$PATH”

3.    Create folders

  • sudo mkdir -p /usr/local/src
  • sudo chgrp admin /usr/local/src
  • sudo chmod -R 775 /usr/local/src
  • cd /usr/local/src

4.    Get Ruby (note: check what the current stable version is)

  • curl -O ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6-p111.tar.gz
  • tar xzvf ruby-1.8.6-p111.tar.gz
  • cd ruby-1.8.6-p111
  • ./configure –enable-shared –enable-pthread CFLAGS=-D_XOPEN_SOURCE=1
  • make
  • sudo make install
  • cd ..

5.    Ger RubyGems (note: check what the current stable version is

  • curl -O http://files.rubyforge.mmmultiworks.com/rubygems/rubygems-1.0.1.tgz
  • tar xzvf rubygems-1.0.1.tgz
  • cd rubygems-1.0.1
  • sudo /usr/local/bin/ruby setup.rb
  • cd ..

6.    Install Rails and any other gems you want

  • sudo gem install rails
  • sudo gem install rspec

Popularity: 17% [?]

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati
  • TwitThis
  • E-mail this story to a friend!
  • Print this article!

Tags: , ,


Related Posts

Post a Comment