Installing Mongrel on OS X

written September 1 2006 by
Joe
tagged with
, , ,
No Comments so far. Go, post one!
Previous Exception Notifier - R…
railsforum.com - A Rub… Next
Migrations in Ruby on Rails
Exception Notifier - Ruby on Rails plugin
Parse natural language date/time strings in Ruby with Chronic
Text-Link-Ads Plugin For Ruby On Rails

A few days ago I began working on a design for the “soaked and soaped”-blog. Webrick seemed a bit slow for working offline on an app like Typo so I decided to give mongrel a try.

After installing it via RubyGems…
$ sudo gem install mongrel

.. I quickly realized that something went wrong during installation.
I tried to start mongrel in my RailsApp directory but all that happened was getting an error message that HttpHandler doesn’t exist.

I googled a bit and finally found this.

It says that the mongrel installation routine needs a programm called ginstall to work proper. Bad luck, Mac OS X has no program called ginstall, but one which is called install and which resides on another location than ginstall.

So all you have to do, do get mongrel running on OS X is:

1. Uninstall it (if you have already installed it).
$ sudo gem uninstall mongrel

2. Set a symbolic link from the “install”-command to the place, the install script wants to have a program called “ginstall”.
$ sudo ln -s /usr/bin/install /opt/local/bin/ginstall

3. Install mongrel again via RubyGems
$ sudo gem install mongrel

4. After installation is complete, switch into your railsapp directory and start mongrel.
$ cd your/railsapp
$ mongrel_rails start

No Comments

Make our day bright and participate!

Do participate!

Textile (only links and basic formatting) is allowed.
These are not required