Installing Ruby 1.9 on OS/X 10.5.7

Posted on 24 August 2009

OS/X comes with Ruby 1.8.6 pre-installed which is brilliant but updating it not so straightforward, also anyone attempting a gem update -system will end up with a lovely broken system. To fix this and since Ruby 1.9 is so much faster here’s a short guide on how to clean up your system and end up with single Ruby 1.9 install with gems that update nicely.

First off remove all the old files (I suggest making a note of your existing gems so you can install them again afterward):

sudo rm -r /System/Library/Frameworks/Ruby.framework/
sudo rm -r /Library/Ruby
sudo rm /usr/bin/ruby
sudo rm /usr/bin/gem

Install MacPorts

Brings the greatness of BSD Unix ports to OS/X – MacPorts.

Install Ruby 1.9

sudo port install ruby19 +nosuffix

Et voila

Ruby 1.9 nicely installed via MacPorts.  Ruby 1.9 has RubyGems built in so need to install that separately.  Just gem install your required gems.  My only caveat is that some gems don’t seem to install their dependencies but this is easily solved by explicitly installing them.  Apart from that all should work bar some possibly PATH issues (I had to point TextMate at /opt/local/bin to get the in-editor interpreter working).


2 responses to Installing Ruby 1.9 on OS/X 10.5.7

  • Rafe Kafel says:

    Does God Hate Women? First of all; An atheist who mentions God in his arguments, is no atheist at all! He is simply a believer who is defiant of God. He is what Islam call a “KAFEER” -like Satan who defied the commandment of God when God commanded the angels to prostrate to Adam- or just like a criminal who does not follow common law and hence he is punished? Now, let us put aside the rhetorical questions and the sublime philosophical juxtapositions of the Fools and concentrate more on deeper practical problems instead of wasting our time with God! That debate is foolish! Does God exist or does he not exist? What difference does it make to us; how does it change our lives? As for the Cohen question, it is man who punishes, and rapes, and murder in the name of God (actually, they do it in the name of the anti-God (The Devil/Evil); God fearing men; believe in fundamental moral laws, which prevents them from doing evil (that is if they are true/sincere believers. In Quran (The Recitation), God said ” And among you are those who claim to have faith, but they are not truly faithful; they simply became muslims (surrendered to the will of a man out of fear), and did not truly embrace the faith by surrendering to the will of God. They think they are deceiving God, whence they are only deceiving themselves (lying to themselves). If you are intelligent, you will leave God out of the equation, and seek to live your life in a Godly manner (surrounding yourself with positive energy) and in this way you become faithful to your divine-self (God has created you from his spirit, and to God you shall return!)

    • salin says:

      I appreciate your attempt to comment on that quotation in a polite manner. However what does it have to do with installing Ruby 1.9 on OS/X?! I think perhaps the authors website would be a better place to go…

      All I will say is that an atheist can mention god in her arguments in the same way that she can mention the tooth fairy or Thor for example.

  • Leave a Response

    Spam protection by WP Captcha-Free

    Recent Posts

    Tag Cloud

    Meta

    Homepage and blog of Steve Andrews from Guernsey

    Powered by WordPress

    Valid XHTML 1.0 Transitional

    Copyright ©2009