DarwinPorts, Ruby, RubyGems and friends (simple-howto)

Well this is my first post in this category and is not about “pimping it” but about how to install DarwinPorts and Rails / rubygems on it!

The very first step is to download DarwinPorts for your mac. In this example it will be this “http://darwinports.opendarwin.org/downloads/DarwinPorts-1.3.1-10.4.dmg”:http://darwinports.opendarwin.org/downloads/DarwinPorts-1.3.1-10.4.dmg

1 – Installing DarwinPorts

Install the DarwinPorts dmg and follow the easy-click-steps (_I will not publish screenshots here about this, it’s too easy!_)

2 – “_Sync it_”

As root run this in your terminal

%port sync

and you will get the latest Portfiles (“Makefiles”/Instructions for building ports)

3 – Update DarwinPorts

%port selfupdate

4 – Install Ruby and rubygems, via DarwinPorts

%port install ruby
%port -f install rb-rubygems

5 – Some nice commands to remember

List installed ports:

%port installed

Uninstalling ports:

% port -f uninstall rb-rubygems

Updating ports:

% port upgrade ruby

and so on as you can see in the port man page:

%man port

Installing Rails _and friends_

Simply….

%gem install rake --include-dependencies

%gem install rails --include-dependencies

%gem list --local

and it’s all folks…bye

Leave a Comment

Related Posts