autoreconf

Life in the cloud.

Setting Up Ruby on Rails Issues

I recently picked up a new MacBook Air to start developing with Ruby. Out of the box it has Mac OS X Version 10.7.3. Yesterday a new version of the, “Ruby on Rails Tutorial” was released that included the use of Bootstrap. Perfect timing to start playing around.

As I started to follow the tutorial on getting setup I started to run into issues. After googling around a bit I finally got things rolling so I hope this saves some people a little bit of time.

Issue 1: make: command not found

This was an easy one. I had to install XCODE 4.3 using the App Store.

Once I installed XCode I was hoping to be on my way again but quickly ran into another issue. Turns out the command-line tools are now a separate install within the XCode application. To install the command-line tools look under the “Downloads” tab of the preferences panel, under “Components”.

I tried to continue but ran into the next issue.

I later found out I could have just downloaded the command line tools from: Downloads for Apple Developers. 
I confirmed this with another developer in my office who was trying the same setup.

Issue 2: rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH

After a little research it appears Apple no longer provides this tool so I had to find the gcc. I came across a few articles and multiple variations but the simplest seemed to be just to download the package from: : https://github.com/kennethreitz/osx-gcc-installer/downloads

I am sure there are other ways to get this going but it worked for me. Please let me know if this worked for you or if you had any variations that could help others.