Installing RoR

On April 4, 2009, in Mac, RoR, by Anuj Gakhar

So, last night, I thought of installing RoR on my Mac. Luckily, on Leopard, Ruby and Rails are pre-installed along with some other RubyGems. Out of the box, you get Ruby version 1.8.6 and Rails version 1.2.6, the latest stable releases at the time Leopard shipped. Ruby releases are few and far between (it’s still at 1.8.6), but Rails has frequent new releases. All you need to do is make sure that you have the latest updated gems.

[source:xml]
sudo gem update –system
sudo gem install rails
sudo gem update rake
sudo gem update sqlite3-ruby
[/source]

I just ran those commands one by one and all done! It takes a while for these commands to finish though. There is an excellent article on Developing Rails Applications on MacOS Leopard which gives you a full tour of Ruby on Rails 2.0 on Leopard—starting with building a web application using the latest Rails features with Xcode 3.0, and finishing with deploying the application to a production server running Leopard Server. There is another great article for the older version (Tiger) . I dont think there is anything that these articles dont cover to get you started with building your first RoR app/scaffolding etc on your Mac.

However, if you are on Windows, you could use this One Click Ruby Installer for Windows. This would install the Ruby language on your Windows box. You would still have to update your gems I think via the command prompt. The next thing would be to install Rails. You can use InstantRails for Windows.

So, now, I have my Mac ready for RoR development, I can do some real work. Lets see how it goes!

Tagged with:  

5 Responses to Installing RoR

  1. […] my Previous article on Installing RoR, I spoke about this excellent article which I followed completely to build my first RoR app in just […]

  2. radekg says:

    Good to see another person learning RoR. Quoting @neilmiddleton:
    script/generate stuff_I_don’t_need_to_write_manually
    Much better
    I heard RoR on Windows is no no. Some gems won’t even work on Windows.

  3. Anuj Gakhar says:

    Hey Radek, have you moved into RoR as well then ? And I am not into Windows anymore anyways, so doesnt matter.

  4. radekg says:

    I don’t think “moved” is good term here but yes, I’m doing some development in Rails as well.

  5. Hi

    Thank yor Anuj Gakhar …..

Leave a Reply

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 445 other subscribers

© 2011 Anuj Gakhar
%d bloggers like this: