Thursday, July 11, 2013

RVM install fails when you have developer preview of xcode5 installed

I was just installing ruby-2.0.0-p247 on my machine (high time, I know!), and rvm kept failing silently.  It would download ruby, extract, proceed till configure, and failed at the installation phase.

So I ran

rvm install --debug ruby-2.0.0-p247 

And this exposed the location of the installation log file.  

The log, showed that the failure was with a missing path within Xcode.app - 

Apple's Xcode5 developer preview app 1 & 2 were just named Xcode5-DP.app, but with the Developer preview 3, the app's called Xcode5-DP3.app - And for some reason rvm's install scripts were looking for a path inside Xcode5-DP.app. Strange.

Anyway, I then proceeded to symlink Xcode5-DP3.app as Xcode5-DP.app, did a rvm install again, and this time, installation went smooth.

Blogging this, just in case someone else runs into the same issue. I can't be the only one who's so late to the party? 
Post a Comment