Before anyone gets any ideas. This is by no mean a definitive guide to Ruby on Rails. I am an absolute newb to Ruby on Rails and really developing web applications in general. I have working knowledge of HTML and CSS. I can stumble my way through PHP. I know next to nothing about MySQL. And this is my first ever attempt to extend my skillz (or lack there of) into application development a la playing with Ruby on Rails on my mac.
This blog post is as much for my benefit so that I can look back and see what I did. And most importantly what mistakes I made. Hopefully if you are reading this blog, you will learn from my mistakes so that you won’t have to make them.
So before I begin here is the system I am installing this on:
2.16GHz Intel Mac Book Pro running OS X Version 10.5.6
Installing Ruby on Rails.
I installed Ruby on Rails by following this excellent step by step post Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OSX 10.5 (Leopard) which is the updated version of this guide, both of which I found on Hivelogic. The post is a bit dated but just about everything works perfectly. I did have make some minor changes to the installation to make sure I got the latest version of Ruby and Rails, but all that requires is that you find out what the latest version is a replace it in the code.
(You can find out what the latest version is by checking out the Ruby on Rails and Ruby Gems websites.)
So for example to install the latest version of Ruby Gems, everywhere I saw:
rubygems-1.3.1.tgz
I replaced it with:
rubygems-1.3.2.tgz
See easy as pie.
The only real problem I had was in installing Subversion. If you see these two error messages when trying to configure Subversion:
error: –with-openssl requires a path
error: –with-zlib requires an argument
then try removing the –with-openssl statement and add =/usr/ after –with-zlib so it looks like this:
./configure –prefix=/usr/local –with-ssl –with-zlib=/usr/
Now I don’t know what this actually does, but the installation does seem to work if you do this. Don’t blame me if something happens to your computer though… I am still learning too.
Anyway that is it for the installation. All in all it took me about 2 hours to install everything. Although I am sure that someone seasoned at this could do it much faster.