Homebrew up for 10.6 OS X

Homebrew is a very easy way to complement the UNIX tools that Apple chooses, in its wisdom, not to package with OS X. It works easily and is maintained by mxcl, thank thee kindly.As previously mentioned, OS X already has two package managers: Fink and MacPorts. If one of those is working for you, great. But if you’ve been frustrated by them in the past, give Homebrew a try. It’s easy to create and edit formulae, and even to edit Homebrew itself, since the core is just a few hundred lines of Ruby code. [Here](http://bit.ly/mls9Rm) is some discussion about the fight between homebrew, macports and fink, for your reading pleasure. asbestos pants on. Nice [writeup](http://bit.ly/jjv6dQ) on homebrew goodness.

One of the first things I ran into was an error in following the kind instructions on the github [home](https://github.com/mxcl/homebrew)

This was some legacy error where my regular account had not migrated itself to include itself as a member of *Staff*, so it couldn’t write to */usr/local*
The fix is [here](https://github.com/mxcl/homebrew/issues/1085)
which involves running the following:

[bash]
$ sudo dscl /Local/Default -append /Groups/staff GroupMembership $USER
[/bash]

Once past that, the following works as expected:

[bash]
$ ruby -e "$(curl -fsSL https://raw.github.com/gist/323731/39fc1416e34b9f6db201b4a026181f4ceb7cfa74)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/…
/usr/local/Library/Homebrew/…
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/doc
==> The following directories will have their group set to staff:
/usr/local/.
/usr/local/bin
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/lib/pkgconfig
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/doc

Press enter to continue
==> /usr/bin/sudo /bin/chmod g+w /usr/local/. /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/doc
==> /usr/bin/sudo /usr/bin/chgrp staff /usr/local/. /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig /usr/local/share /usr/local/share/man /usr/local/share/man/man1 /usr/local/share/man/man3 /usr/local/share/doc
==> Downloading and Installing Homebrew…
==> Installation successful!
[/bash]

What goodness have you done? Try

[bash]
brew search
[/bash]

Keep your brew up to date, easy with github:

[bash]
brew update
[/bash]

Want to install some package, why

[bash]
brew install package
[/bash]

very nice.

twitter
twitter

Leave a Reply

Your email address will not be published. Required fields are marked *