Difference between revisions of "HOWTO get ns-3 running on Mac OS X (10.6.2 Intel)"

From Nsnam
Jump to: navigation, search
Line 1: Line 1:
The installation instructions included in this page are not meant to be comprehensive and represent only one of the many ways of getting ns-3 to build in a Snow Leopard Mac OS X system. Commands should be run from a Terminal window.
+
The installation instructions included in this page are not meant to be comprehensive and represent only one of the many ways of getting ns-3 to build in a Snow Leopard Mac OS X system. Commands (>>) should be run from a Terminal window.
  
 
'''1) Install XCode'''
 
'''1) Install XCode'''
Line 11: Line 11:
 
2.2) Extract the contents of the file and enter open up the Terminal in the resulting folder.
 
2.2) Extract the contents of the file and enter open up the Terminal in the resulting folder.
  
2.3) Install Fink with the ./bootstrap command (during the interactive installation process, select the 32 bit installation).
+
2.3) Install Fink (during the interactive installation process, select the 32 bit installation).
 +
 
 +
>> ./bootstrap
  
 
2.4) Execute /sw/bin/pathsetup.sh in order to setup the environment variables for Fink.
 
2.4) Execute /sw/bin/pathsetup.sh in order to setup the environment variables for Fink.
  
2.5) Execute fink selfupdate to freshen the Fink install with updated packages.
+
>> /sw/bin/pathsetup.sh
 +
 
 +
2.5) Install updated packages, if available.
 +
 
 +
>> fink selfupdate
  
 
'''3) Install Mercurial'''
 
'''3) Install Mercurial'''
Line 24: Line 30:
 
'''4) Download source code'''
 
'''4) Download source code'''
  
a. "hg clone http://code.nsam.org/ns-3-dev"
+
>> hg clone http://code.nsam.org/ns-3-dev
  
 
4.1 Open  
 
4.1 Open  
  
 
'''5) Build the local repository'''
 
'''5) Build the local repository'''

Revision as of 12:32, 21 January 2010

The installation instructions included in this page are not meant to be comprehensive and represent only one of the many ways of getting ns-3 to build in a Snow Leopard Mac OS X system. Commands (>>) should be run from a Terminal window.

1) Install XCode

You will find XCode in the Mac OS X Install DVD that came with your Mac. Alternatively, you can download the most recent version of XCode from the Apple Developer Connection website (http://developer.apple.com/mac/). The XCode development environment includes the gcc compiler and critical libraries required to build applications to be run in Mac OS X.

2) Install Fink

2.1) Download Fink (source release version 0.29.10) from http://downloads.sourceforge.net/fink/fink-0.29.10.tar.gz

2.2) Extract the contents of the file and enter open up the Terminal in the resulting folder.

2.3) Install Fink (during the interactive installation process, select the 32 bit installation).

>> ./bootstrap

2.4) Execute /sw/bin/pathsetup.sh in order to setup the environment variables for Fink.

>> /sw/bin/pathsetup.sh

2.5) Install updated packages, if available.

>> fink selfupdate

3) Install Mercurial

3.1) Download the Mercurial 1.4.2 binary package from http://mercurial.selenic.com/wiki/Download 3.2) Perform the installation of Mercurial and verify that the installation was successful

4) Download source code

>> hg clone http://code.nsam.org/ns-3-dev

4.1 Open

5) Build the local repository