05.01.2013 Views

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

Mac OS X Leopard - ARCAism

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2. If an official version is not available, check either Fink or <strong>Mac</strong>Ports (you’ll most likely<br />

want to pick one and stick with it) to see whether the application you are after is available.<br />

Both Fink and <strong>Mac</strong>Ports, once properly set up, will provide you with a way then to<br />

download and install the application. These systems will also assure that any other<br />

applications or libraries that the application depends on are installed as well and will<br />

provide an effective way to upgrade the apps or uninstall them if you no longer need them.<br />

3. If you need a highly customized version of an app, or want to sidestep Fink or <strong>Mac</strong>Ports<br />

for whatever reason, then you can download the source code and compile the application<br />

yourself. This will assure that the app is good to go; however, if you go this route, you will<br />

need to manually assure that all dependencies are covered, and all further maintenance of<br />

the package will need to be made manually.<br />

4. Installing a random precompiled binary should be a last resort and should generally be<br />

avoided unless it comes from a trusted reliable source and it was compiled for your specific<br />

system; that is, an application compiled for Tiger (<strong>OS</strong> X 10.4) might not work right on<br />

<strong>Leopard</strong> (<strong>OS</strong> X 10.5). There are very few cases where this is recommended.<br />

NOTE A good source of finding official binaries, or at least reputable ones, is from Apple’s<br />

website at www.apple.com/downloads/macosx/unix_open_source/. Here Apple provides lots of<br />

Unix and open source software and utilities to download.<br />

<strong>Mac</strong>Ports and Fink<br />

As mentioned, the preferred way to get a large amount of Darwin goodness is through either<br />

Fink or <strong>Mac</strong>Ports. To take advantage of one of these, though, you first must choose which one<br />

to use. In a side-by-side feature comparison, both of these come out pretty similarly. Fink, however,<br />

offers binary installation and source installations, where <strong>Mac</strong>Ports uses source installs all<br />

the time. Fink also includes a GUI to install packages called Fink Commander. The main difference,<br />

though, is how these programs actually do what they do. The Fink project is based on the<br />

Debian packaging system from the Debian Linux Projects, while <strong>Mac</strong>Ports is loosely based on<br />

FreeBSD’s ports system.<br />

Fink<br />

Fink (http://finkproject.org/) was designed to bring the world of Unix to <strong>Mac</strong> <strong>OS</strong> X using tools<br />

provided by the Debian Project. Fink is designed to keep everything it does relegated to the /sw<br />

directory where it won’t interfere with any of the default <strong>Mac</strong> <strong>OS</strong> X settings or applications.<br />

The easiest way to get started with Fink is to download the binary installer package from its<br />

website and install it. During installation, Fink will prompt you for the administrator password<br />

so it can add some paths to your $PATH. Once the installation package is done with its installation,<br />

you should open your Terminal and issue the following commands to initialize Fink:<br />

fink scanpackages; fink index<br />

Once those two commands are finished running, before you start installing, you should make<br />

sure Fink is up-to-date. If you have installed the Xcode Tools package (that is, Apple’s developers<br />

tools), the best way to do this is to issue the following command:<br />

fink selfupdate<br />

CHAPTER 19 EXTENDING THE POWER OF DARWIN 343<br />

When prompted, select the rsync option (option 1). This will start a process of downloading,<br />

compiling, and installing the latest version of Fink. Once it’s done, you’re good to go.<br />

Table 19-4 lists some handy commands to work with Fink.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!