Mac OS X Installation Guide (.html)
by
Bill Clark
—
last modified
May 15, 2009 05:18 PM
How to obtain gcc from Apple and install ADMB on a Mac.
admb.install.html
—
HTML,
3Kb
File contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="NeoOffice 2.2 (Unix)">
<META NAME="CREATED" CONTENT="20090515;9343800">
<META NAME="CHANGED" CONTENT="20090515;10065000">
<STYLE TYPE="text/css">
<!--
@page { size: 8.5in 11in; margin: 0.79in }
P { margin-bottom: 0.08in }
-->
</STYLE>
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<P STYLE="margin-bottom: 0in"><FONT SIZE=4><B>ADMB Installation on
Mac OS X</B></FONT></P>
<P STYLE="margin-bottom: 0in"><FONT SIZE=3><B>Introduction</B></FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3>Beneath
the Apple GUI, a Mac is just a regular Unix system using the gcc
compiler, so installing and running ADMB on a Mac is the same as on a
Linux system. All you have to do first is to download the free
development tools (including gcc) from the Apple website.</FONT></P>
<P STYLE="margin-bottom: 0in"><FONT SIZE=3><B>Obtaining the
development tools</B></FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3>Apple
requires that you register as a developer to download the tools.
Membership is free, and you get a ton of Unix software along with
gcc. To sign up, go to the Apple Developer Connection at
developer.apple.com/products/membership.html.</FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3>The
Unix software is bundled with Apple's development tools called Xcode.
To download the latest version (3.1.2 as of May 2009), go to
developer.apple.com/mac and follow the Xcode link. This version is
what you want if you are running the latest version of Mac OS
(presently 10.5.x, aka Leopard), but it will not run under Mac OS
10.4 (Tiger).</FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3>If
you are running Mac OS 10.4, you want Xcode 2.2.1. To get it, do the
following:</FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3> (i)
Go to the Mac Developer Program page at
developer.apple.com/products/mac/program.</FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3> (ii)
Click on the tiny "ADC member site" tab at the top of the
page.</FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3> (iii)
Log in as a member, then click on "Downloads".</FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3> (iv)
In the list of downloads on the right side of the page, click on "Mac
OS X".</FONT></P>
<P STYLE="margin-bottom: 0in; font-weight: medium"><FONT SIZE=3> (v)
Scroll down to Xcode 2.2.1.</FONT></P>
<P STYLE="margin-bottom: 0in"><FONT SIZE=3><B>Installing and running
ADMB</B></FONT></P>
<P STYLE="margin-bottom: 0in"><FONT SIZE=3><SPAN STYLE="font-weight: medium">Same
as Linux. Create an ADMB install directory, e.g. $HOME/admb, and add
the following lines to your .bashrc file:</SPAN></FONT></P>
<P STYLE="margin-bottom: 0in"><FONT SIZE=3><SPAN STYLE="font-weight: medium">ADMB_HOME=$HOME/admb</SPAN></FONT></P>
<P STYLE="margin-bottom: 0in"><FONT SIZE=3><SPAN STYLE="font-weight: medium">export
ADMB_HOME</SPAN></FONT></P>
<P STYLE="margin-bottom: 0in"><FONT SIZE=3><SPAN STYLE="font-weight: medium">PATH=$PATH:$HOME/admb/bin</SPAN></FONT></P>
</BODY>
</HTML>

