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
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.
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