Gangmax Blog

自由之思想,独立之精神

Homebrew: The Missing Package Manager for Mac OS X

| Comments

Subject tells everything. The home site of homebrew is: http://mxcl.github.com/homebrew/

Here’s the method how to install:

Paste this at a shell prompt:

    /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:

    $ 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