HOWTO get ns-3 running on Mac OS X (10.6.2 Intel)

From Nsnam
Revision as of 16:02, 21 January 2010 by Zigorsalvador (Talk | contribs)

Jump to: navigation, search

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. Mac OS X does not support all of the features of ns-3, but core functionality is provided. Check for further details on what is and what is not supported on Mac OS X.

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 ( 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

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 a script in order to setup the environment variables for Fink.

>> /sw/bin/ (assuming a default install folder).

2.5) Install updated packages, if available.

>> fink selfupdate

3) Install Mercurial

Download and install the Mercurial 1.4.2 binary package from

4) Download source code

>> hg clone

5) Build the local repository

>> ./waf configure

>> ./waf