Mac OS X 10.6 Installation

all steps needed to go from clean install to AFNI

applies to clean 10.6 system (so 64-bit Intel CPU)

These instructions have moved to: HowTo Install AFNI



    While these steps are all fairly simple, the whole process can still
    take a few hours.  It is not necessary to stare at the screen during
    the entire process...

    Note that installing Xcode and fink can be (temporarily?) avoided if the
    user does not care for writing JPEG (etc.) images out.  While some of the
    10.6 libraries would be missing, the 10.5 package (macosx_10.5_Intel_64)
    has older libraries and works right off the bat.  The rest of this document
    assumes the user wants to update their system for the 10.6 binaries
    (macosx_10.6_Intel_64).


1. account setup

1a. Create a user account with su (Administrator) privileges (via "System Preferences", under "Accounts"). 1b. (optional) Set the shell to /bin/tcsh. This no longer works using the chsh command. Under System Preferences : System : Accounts menu, right-click on the user to get the Advanced Options menu and change the Login shell to /bin/tcsh. 1c. (optional) Under System Preferences : Sharing : Services, enable Remote Login to allow ssh access. 1d. Set the policy where "focus follows mouse", so that it is not necessary to first click on a new window (to select it) before subsequent clicks are applied to that window. From a terminal window, enter: defaults write org.x.X11 wm_ffm -bool true 1e. Add /sw/bin (for Fink) and ~/abin (for AFNI) to path. echo 'set path = ( /sw/bin $path ~/abin )' >> ~/.cshrc Note: the /sw/bin and ~/abin directories will be created later (/sw/bin by fink install and ~/abin during AFNI install). 1f. Log out and log back in to apply the shell and path changes.

2. Xcode installation

Xcode is needed for the gcc compiler and related tools It is best to start with the most recent version from the apple website. o go to http://connect.apple.com - a login account is necessary to download, sign up the first time - sign up via "Register as an Apple Developer", it is free o get the current Xcode package (part of Developer Tools) and install - current version is 3.2.6 - installation defaults are good, no choices should be needed

3. Fink installation

At this point, you should install Fink. We have had better results with Fink than DarwinPorts -- OpenMotif from DarwinPorts does not seem to work well. 3a. Go to http://sourceforge.net/projects/fink and download and install Fink. The 10.6 package is listed first at this time. Currently fink on is a source package, so extra steps are needed. In the future, this might not be needed. o download the package (might expand to .tar) o go to ~/Downloads and unpack the .tar file cd ~/Downloads tar -xf fink-0.34.5.tar cd fink-0.34.5 o install fink by running the 'bootstrap' program (instructions are in the INSTALL file) NOTE: for the second question, choose response '2' That will install the 64-bit version. Most other questions can be answered with <enter> to pick the default option. ./bootstrap o let your t-shell know about new programs under /sw/bin rehash 3b. Enable the "unstable" fink repositories. Edit the "Trees:" line of /sw/etc/fink.conf, appending the main and crypto unstable trees. The full line should read: Trees: local/main stable/main stable/crypto unstable/main unstable/crypto 3c. Make sure Fink is up-to-date by typing the commands: sudo fink scanpackages sudo fink index sudo fink selfupdate 3d. Install the needed libraries from fink by typing the command: sudo fink install glib glib2-dev netpbm openmotif3 (rare) Note: IF the result is an rsync error, consider this. 3e. Also, consider installing PyQt4, for use of the uber_*.py programs. sudo fink install python27-shlibs pyqt4-py27 3f. (optional) Also, consider using gedit for an editor. sudo fink install gedit

4. AFNI installation (finally, the easy part)

4a. Download and unpack the current binaries into your home directory, changing the directory name to 'abin'. cd curl -O http://afni.nimh.nih.gov/pub/dist/tgz/macosx_10.6_Intel_64.tgz tar -xzf macosx_10.6_Intel_64.tgz mv macosx_10.6_Intel_64 abin rm macosx_10.6_Intel_64.tgz 4b. Since abin should already be in your path from above, just let your shell know about the new programs (or log out and back in). rehash 4c. Try it out! If these start, you should be in good shape. afni suma 4d. Get sample data and review AFNI handouts. Class Data and Handouts