COS 126: Mac OS X Installation Page


This documents instructs you on how to setup a C programming environment for your Macintosh computer. The instructions will deal with configuring one of the laptops purchased through SCI, although if you bought your own equipment you should be able to adapt the instructions below. All of the software below is either shipped with your SCI computer or can be downloaded from the Web.

OS X


Creating gcc126 to properly compile files


Developer Tools

The Developer Tools include a C compiler, debugger, and lots of other goodies. It should be pre-installed on all recent Apple machines. To see if it is installed on our machine, go to the Terminal and type

which cc
If it says /usr/bin/cc, then you're ready to go; if it says cc: Command not found., then you need to install the Developer Tools. You should have a CD with your copy of OS X; if not you can go to http://developer.apple.com, register for a free ADC membership, go to Downloads, and download the appropriate version of the OS X Developer Tools.


Text Editor for Programming

We recommend using Project Builder and adding it to your dock. It is included with the Developer Tools. On my system, you can find it from the Finder via Computer -> OS X Partition -> Developer -> Applications -> Project Builder.

BBEdit is another popular text editor for the Mac. The "Lite" version is freeware. It can be downloaded from www.bbedit.com.


PostScript Viewer

MacGSView is a program that allows you to view PostScript files. You will need such a program when we create graphics, starting in Assignment 2.


Acrobat

Acrobat Reader allows you to view pdf files. Many of the documents on our Web site are in this format. If you bought your computer from SCI, you probably have the OS 9 version of Acrobat installed. We recommend upgrading to the OS X version.

Fetch

Fetch is an FTP client that allows you to transfer files to and from your computer. On many assignments we provide various sample code and data files which you will probably want to download.

A command-line ftp client is already installed with OS X -- type "sftp ftp.princeton.edu" in the Terminal to connect to the Princeton ftp server.

Telnet and SSH

Nifty telnet is a telnet and ssh client that allows you to login to a remote system such as arizona. If you plan to edit and compiler programs under OS X, you may not need this program.

A command-line ssh client is already installed with OS X -- type "ssh arizona.princeton.edu" in the Terminal to login to the arizona system.

PowerPoint Viewer

Some of the in-class demos are in PowerPoint format.

Java

It is automatically installed along with OS X.