Rails on Lion

Published: March 3, 2012

Antano Solar John is the creator and developer of the most advanced technologies to design and fast-track personal evolution and an investor in startups that have access to cutting-edge solutions for personal excellence.

gem install rails is broken on factory shipped Mac OSX LION.

So if you like me, want to get rails working with the native ruby version on Mac, you can do so
with the following steps.

1. Install Xcode from App Store.
(MAC doesn’t ship with a CD or with Xcode installed anymore)
2. Launch Xcode from Mission Control to complete the installation
3. Open Xcode -> preferences -> Downloads -> Install – Command Line Tools
(This gets you make, gcc and other goodies. Yes Xcode doesn’t ship with this installed anymore)
4. sudo gem install rails

Sometimes you maybe unable to install Xcode. Updating the Lion version to 10.7.3 from software update helps.

If you still have challenges: You can also attempt the following.
sudo gems update --system
and/or
sudo gems install rubygems-update
sudo update_rubygems

After install the complete Dev Package (Xcode + Command Line Tools) all gem compilations work like breeze.

Good Luck :)

Save

Related Posts

Ruby HTTP Post with JSON Request + SSL + Certificate + Basic Authentication

Ruby HTTP Post with JSON Request + SSL + Certificate + Basic Authentication

Tools & Showcase

Tools & Showcase

5 Min Mentor – Quick and Measurable Learning by Content Free Diagnosis

5 Min Mentor – Quick and Measurable Learning by Content Free Diagnosis

Shell for Catalyst

Shell for Catalyst

The Antano Solar Voice  is one of the most cutting-edge blog and podcast in the world with fresh insights from validated life experience. The Solar Voice season 1 podcast has been ranked #3 in Apple iTunes News & Noteworthy. And the posts have been published in over a dozen publications including Business World, YourStory, Hindu Business Line, Economic Times and  many more. To listen to any of the past episodes for free, check out this page. And to read the past article, check out the blog page.

Leave a Reply


Your email address will not be published. Required fields are marked

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}