It seems that most of Rails 3, Ruby 1.9.2 can be used, but when it is sqlite3-ruby
, or mysql2
gems, then it can't compile, (missing mkmf
?) and the latest Xcode is needed. But the latest Xcode is for Snow Leopard only. So looks like the Macbook needs to be upgraded to Snow Leopard before Rails 3 can be used?
Asked
Active
Viewed 496 times
0

nonopolarity
- 146,324
- 131
- 460
- 740
-
which version of xcode do you have ? – Rishav Rastogi Oct 10 '10 at 02:26
2 Answers
0
Have you tried using RVM? It provides an easy way to install different Ruby (and Rails) versions in your system. This guy here describes his experience with RVM, mysql and MacOS 10.5.
Hope it helps!

Rafael Vega
- 4,575
- 4
- 32
- 50
-
if installation of sqlite3-ruby doesn't work, having RVM doesn't help, does it? – nonopolarity Oct 26 '10 at 05:31
-
The article at the link I provided describes how to install the mysql gem on Leopard. mkmf.log is mentioned and he uses RVM. I thought it could be relevant (I still do!) – Rafael Vega Oct 26 '10 at 17:18
-
the article is about mysql and not mysql2, but I almost positive I was able to install mysql2 gem before I upgraded my box to snow leopard and I think the same (or similar) methods were used for mysql2. Can you update the question and post the exact error message you are getting when you try to install? – johnmcaliley Nov 15 '10 at 05:45
0
It should work on Leopard without the new Xcode, get it with sudo gem install rails
.

Sam Baumgarten
- 2,231
- 3
- 21
- 46