After a fresh install of OSX Lion, RVM decided no more of my ruby friends could come over and play. So I was all like “what’s up, RVM… y u no like my ruby exchange students anymore?”
Turns out Lion made some changes to what default compiler is getting used which makes building ruby via RVM unhappy. After some searching, the fine folks over at StackOverflow are full of win again.
Here is the solution that works for me:
CC=/usr/local/bin/gcc-4.2 rvm install <ruby version>
It was recommended that the CC variable declaration could be put in your profile reducing the need to enter it every time, but I’m uncomfortable just blindly making that change. If this is the only time I need to do this, I think I’m OK with it.
As a rails developer, or any web developer for that matter, it can be a pain to open up your
hosts file everytime you need access to a new development domain. It becomes even worse when you are in need of some hot subdomain action.
A while back I came across Geoff Hankerson’s post and was quite happy with the outcome. Since then I’ve changed my development machine and had since lost this configuration. I was in the process of writing an article to share with all of you on how to set this up when I came across Mike Ferrier’s updated post. I figured he had already put in the work creating a great article so I want to send you all there.
Obviously there are many different ways to set up your development environment but I feel this is a great option to have and I encourage you to try it out.