Hacker News new | ask | show | jobs
by joethompson 5029 days ago
Or, if you have Homebrew (http://mxcl.github.com/homebrew/) installed:

  brew install tree
1 comments

Amazingly (and the comments on his blog also seem to jump on this), he does acknowledge that you can do it with a package manager. There's advantages to learning how to build something like this from source.
Only in this case the learning effect isn't that great, because he doesn't explain the (to me) most confusing part: Why is the edit of the make file necessary? Isn't make responsible for choosing the right configuration settings for the current environment?
No. The usual three step installation from source is

1. configure

2. make

3. sudo make install

Note the absence of 1, which would usually perform these kinds of things (checking for prerequisites, for example).

True, learning how to build things from source yourself is definitely useful, I probably wouldn't be using Homebrew if I wasn't comfortable with that first. It's definitely advantageous to be able to organise/upgrade everything via it though.