Ruby 1.9.2 on Snow Leopard

In an attempt to start some playing around with ruby 1.9 and rails/master (3.0) on Snow Leopard (note: I am configured to boot the 64bit kernel) I wanted to document my steps at getting a working ruby 1.9.2 install, as along the way i’ve encountered various issues (crashing interpreters, etc..)

Install latest readline

ftp://ftp.cwru.edu/pub/bash/readline-6.0.tar.gz
tar -xvzf readline-6.0.tar.gz
cd readline-6.0
./configure
make
sudo make install

Install Ruby Version Manager

sudo gem install rvm
rvm-install

Install Ruby 1.9.2 with RVM

making sure to set as x86_64 and point to our readline

rvm install 1.9.2 -C --enable-shared,--with-readline-dir=/usr/local,--build=x86_64-apple-darwin10
rvm use 1.9.2

Install MySQL gem

also making sure to build with x86_64

env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

About stevestmartin

A Web Application Developer based out of Tampa, FL. Currently employed as a Sr. Developer doing PHP / MySQL and UI development at TraderPlanet a social network for traders and investors. Current focuses are Ruby, Rails, BDD and Audio Production
This entry was posted in Programming, Ruby and tagged , , , , . Bookmark the permalink.

2 Responses to Ruby 1.9.2 on Snow Leopard

  1. David says:

    I am a CS student in CA, and am having problems installing Ruby 1.9; Im running Snow Leopard. Our class learning from Dave Thomas’s book from Pragmatic Programmers’ Guide. I have been to Macpots and have also tried from source, and can still not get 1.9 officially installed.

    I’m getting: “no c compiler in path error”.

    PLEASE HELP.

  2. be sure you have xcode installed, it is available on your OSX installation disk as “developer tools” or can be downloaded online http://developer.apple.com/technology/xcode.html

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>