Here is one of such problems due to mismatched Open SSL Mac Port library versions, that caused me to have to reinstall the whole thing…Well using the system’s version of ruby it is easy to install Homebrew: I usually install RVM in my home directory, and run the previous command with my regular user.

You can download it from the App Store for free, or install it from your Mac OS X installation DVD.

If you are a die hard fan of Mac Ports, please remove it from the , but your configuration maybe a little bit different.

Now that you have installed Xcode and removed the Mac Ports from the PATH you can continue At the time of this writing the current stable version of Ruby was 1.9.3 so that is what I use, you should probably use the latest sable version, and not 1.9.3, by the time you follow this procedure…

To use the ruby version we just installed, and to make it the default version.

RVM is kind of neat since it does not disturb the system version of Ruby and allows you to maintain and work with different versions of Ruby so you can make sure your older projects that require older versions of Ruby, Rails or some other Gem still run even when you upgrade to newer versions.

RVM is kind of like a virtual machine, or environment that allows you to keep separate Ruby installs that will coexist peacefully, and that is why you should use it and not replace the system Ruby version.

RVM allows for the creation and use of several Gem Repositories or gemsets, that you can keep for each of your projects, and this is an invaluable feature so you don’t get stuck into gem dependency issues later on.

In order to update it you should install the Ruby Version Manager or RVM, and not touch the System’s Ruby version.

Trying to install it through Mac Ports also gave me a bunch of problems, especially in OS X Lion (10.7).