![]() | Mac Installation of RoR [Ruby on Rails] |
|
15 Apr 2011, 14:42
patrick lynch (11 posts) |
Previously, I installed RoR on a windows pc without any problem. Is this the way to do this, that is, install MacPorts, X11 and Xcode or is there another way to download RoR? Thanks |
|
15 Apr 2011, 17:15
Steve Castaneda (11 posts) |
Have you checked out brew? http://bsdjedi.blogspot.com/2011/03/moving-over… I used Brew to install Postgresql for deployment to Heroku on my local machine a while back, so I’m sure it can handle a RoR installation. |
|
16 Apr 2011, 01:02
secondplanet (4 posts) |
Homebrew needs Xcode too. Mac comes with Ruby, can’t you just type |
|
16 Apr 2011, 16:02
patrick lynch (11 posts) |
Good morning, |
|
16 Apr 2011, 18:01
secondplanet (4 posts) |
Well, Xcode 3 is free and the paid Xcode 4 isn’t even supported by Homebrew yet. I just noticed this. http://www.opensource.apple.com/release/mac-os-... This is a list of stuff that comes with Mac OS X 10.6.7. Ruby on Rails is on that list. So, if you upgrade you won’t need to do anything. |
|
17 Apr 2011, 17:10
patrick lynch (11 posts) |
I tried the command: rails—version and got back: Rails 1.2.6 I also tried the screencast at http://ruby.railstutorial.org/#buy – rails installation (OSx/Linux) – it looked very promising but its description of the git and curl are out-of-date and I couldn’t get it to work… |
|
17 Apr 2011, 17:23
patrick lynch (11 posts) |
Thanks for the link in regard to the OS X 10.6.7 stuff…I ordered an update of Snow Leopard which presumably is 10.6.7. Thank you |
|
17 Apr 2011, 19:36
Scott White (6 posts) |
Patrick, The packages listed at opensource.apple.com are named based on their Mac build number, which is not the same as the version of the project’s source code. It’s a bit misleading, but if you look at each project’s plist file you can find the version. Also, don’t confuse the version of Rails with the version of Ruby. The Mac build RubyOnRails-28.1 is Rails version 2.3.5 (as well as legacy version 1.2.6) Hope this helps, |
|
18 Apr 2011, 16:32
patrick lynch (11 posts) |
Good afternoon Scott, |
|
19 Apr 2011, 01:04
Scott White (6 posts) |
Hi Patrick, The RubyOnRails build is for Rails, which is version 2.3.5 (and the 1.2.6 version). I believe you are confusing the Ruby version number for the Rails version number…remember they are separate projects. If you go to the plist for RubyOnRails-28.1: http://www.opensource.apple.com/source/RubyOnRa… You’ll find the Rails version:
You will also find Rails version 1.2.6 in that file:
Similarly, in the plist file for the ruby-75.3 build: http://www.opensource.apple.com/source/ruby/rub… You’ll find the Ruby version in:
The version number bundled in the build is found in the value of the OpenSourceVersion key. -Scott |
|
20 Apr 2011, 13:26
secondplanet (4 posts) |
If versions are confusing you, rvm is brilliant. https://github.com/wayneeseguin/rvm |
|
24 Apr 2011, 19:38
Green David Dude (1 post) |
Patrick, I succesfully installed Ruby and Rails on iBook G4 running Mac OS X 10.5.8 with Here a copy of my notes on how I did this: Step 1 – Install Xcode Instructions for installing Apple’s Xcode Developer Tools – Version 3.1.4:
Step 2 – Install MacPorts Instructions for installing MacPorts – Version 1.9.2:
Step 3 – Install SQLite 3 Instructions for installing SQLite 3 (Version 3.7.5):
Note: To see which ports are installed use the command: sudo port installed Step 4 – Install Ruby Instructions for installing Ruby (Version 1.8.7):
Step 5 – Install Rails Instructions for installing Rails (Version 3.0.6):
Note: To display gems installed try this command: sudo gem list—local Good luck! I hope this helps someone out. |
|
28 Apr 2011, 00:18
patrick lynch (11 posts) |
i installed the Snow Leopard upgrade and it got me to Ruby 1.8.7… |
|
12 Oct 2012, 13:29
shanu cis (1 post) |
i came across the problem of installing ‘tk’ and so its not working properly and could not complete my work. ruby on rails developers can easily do so. |
| You must be logged in to comment |

