Skip to Content
Mac OS X in a Nutshell
book

Mac OS X in a Nutshell

by Jason McIntosh, Chuck Toporek, Chris Stone
January 2003
Intermediate to advanced
832 pages
32h 40m
English
O'Reilly Media, Inc.
Content preview from Mac OS X in a Nutshell

Installing from Source

Open source Unix software not available as Mac OS X packages exists as bundles of raw (usually C) source code and helper files. Fortunately, there are some long-standing traditions and idioms with Unix source installation that make this process somewhat easier, but there also remain many places to get stuck, which can bewilder those without C-programming experience (and bewilder those with experience if the source is messy enough).

The usual idiom for installing software from source runs as follows.

  1. Obtain the source code as a .tar.gz file (a.k.a. a tarball). If you download it through a web browser, StuffIt Expander automatically inflates it into a folder within your browser’s download folder (see Section 6.2.4); otherwise, manually use StuffIt Expander or (since you’re probably in the Terminal already) the tar command, with its xzvf (tar-extract, gzip-extract, verbose-mode, file-based) options, like so:

    [jmac]% tar xvzf 
                         something-i-just-downloaded.tar.gz
    ...output of list of files and directories extracted...
    [jmac]%
  2. cd into the directory created through the previous step, and read the README and INSTALL files (and generally anything else with an all-caps filename), if they exist. These provide important information, including hints for installing the software on various systems—if Darwin or Mac OS X appear here, you’re in luck. Also consult any information found on the web site for the ftp directory from which you obtained the source. Be generally suspicious ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mac OS X Internals: A Systems Approach

Mac OS X Internals: A Systems Approach

Amit Singh
C++ In a Nutshell

C++ In a Nutshell

Ray Lischner
Linux Shell Scripting Cookbook - Third Edition

Linux Shell Scripting Cookbook - Third Edition

Clif Flynt, Sarath Lakshman, Shantanu Tushar
Optimized C++

Optimized C++

Kurt Guntheroth

Publisher Resources

ISBN: 0596003706Supplemental ContentCatalog PageErrata