Gangmax Blog

Homebrew: The missing package manager for Mac OS X

Subject tells everything. The home site of homebrew is here.

Here’s the method how to install:

Paste this at a shell prompt:

1
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"

(Make sure to run this inside a stand-alone terminal, not something like Emacs Shell.)

With homebrew, install new package in MacOS is extrmely easy, installing “node.js”, for an example, just needs the following command:

1
2
3
4
5
6
7
8
$ brew install node
==> Downloading http://nodejs.org/dist/v0.6.1/node-v0.6.1.tar.gz ######################################################################################### 100.0%
==> ./configure --prefix=/usr/local/Cellar/node/0.6.1
==> make install
==> Caveats
Please add /usr/local/lib/node_modules to your NODE_PATH environment variable to have node libraries picked up.
==> Summary
/usr/local/Cellar/node/0.6.1: 80 files, 7.6M, built in 21.6 minutes

More information about how to use homebrew, you can run “brew –help” to get the details.

Comments