Installing RVM on Mac OS X 10.6

I recently got a new MacBook Pro, and haven’t gotten around to installing RVM yet. So when I took on this task today, I was totally surprised buy the issues I faced.

Prerequisites

  • Git
  • Terminal chops

Installation

The default installation method is the easiest, so I suggest you follow it. As documented on the official RVM site, just use this one-liner:

That’s it, or so I thought.

Caveats

RVM will likely not work as expected

I kept getting the following error messages:

Not exactly sure what is causing it yet, but the solution is to remove RVM, and retry the installation.

I actually had to repeat this process four times before I did not see these errors anymore.

Command not found

The next problem I faced was that the rvm command wasn’t in my path. Luckily, I found the executable after a quick search. It lives at:

However, simply adding that to your path isn’t the solution. It actually didn’t even work for me. Instead, add the following to your .bashrc or .zshrc, respectively.

Bash

ZSH

Conclusion

So, my curious side wants to know exactly why this is happening, but I got nowhere. Some have solved the problem by setting some permissions, but that solutions seemed to hacky for me.

Hope it helps.

References

The most useful Ruby Gem

One of my favorite features of Ruby is Ruby Gems, the powerful package manager. There are tons of Ruby libraries available as gems such as Rails, Mongrel, and even one for Twitter. The gem I find the most useful nowadays is called cheat. Cheat basically puts tons of cheat sheets inside of your command line, so that you have quick access to the information you need without resorting to those hard to read man pages.

Install

sudo gem install cheat

Props

Cheat is made available by the guys over at Err free, the geniuses behind both FamSpam and GitHub.