Openhood

Install Mongrel2 on Mac

Image by by Ben Hanson on unsplash

Want to play with Zed Shaw‘s Mongrel2 on your mac? Using Homebrew in your home and not in /usr/local ?

Here’s how to get the ØMQ Homebrew’s install picked up by Mongrel2’s Makefile:

(out)# install zeromq via homebrew
brew install zeromq
(out)
(out)# download and install mongrel2
wget http://mongrel2.org/static/downloads/mongrel2-1.2.tar.bz2
tar xvjf mongrel2-1.2.tar.bz2
cd mongrel2-1.2
(out)
(out)# to install in your home
PREFIX=$HOME OPTFLAGS="-I`brew --prefix`/include -L`brew --prefix`/lib" make all install
(out)
(out)# to install in the default location (/usr/local)
sudo OPTFLAGS="-I`brew --prefix`/include -L`brew --prefix`/lib" make all install
Copyright © 2024 Openhood SARL