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

From Nsnam
Jump to: navigation, search
(HOWTO get ns-3 running on Mac OS X (10.5.2 Intel))
m
Line 8: Line 8:
 
== HOWTO get ns-3 running on Mac OS X (10.5.2 Intel) ==
 
== HOWTO get ns-3 running on Mac OS X (10.5.2 Intel) ==
  
1. Join Apple Developer Connection (for free internet user);
+
# Join Apple Developer Connection (for free internet user);
    a. Go to http://developer.apple.com/products/
+
## Go to http://developer.apple.com/products/
    b. Select Join ADC Online Membership
+
## Select Join ADC Online Membership
    c. Log in with Apple ID
+
## Log in with Apple ID
    d. Fill out Become an ADC Member form
+
## Fill out Become an ADC Member form
    e. Tell them what kind of code you develop
+
## Tell them what kind of code you develop
    f. You are redirected to Developer Connection | Member Site
+
## You are redirected to Developer Connection | Member Site
2. Download XCode for your OS (3.0 for Leopard at writing) Disk Image;
+
# Download XCode for your OS (3.0 for Leopard at writing) Disk Image;
    a. From Developer Connection | Member Site select Downloads, get
+
## From Developer Connection | Member Site select Downloads, get directed to What¹s New
        directed to What¹s New
+
## Select Developer Tools from Downloads list
    b. Select Developer Tools from Downloads list
+
## Scroll down to XCode releases and select a Disk Image
    c. Scroll down to XCode releases and select a Disk Image
+
## Be prepared for over 1GB download ~1/2 hour on 6mbps cable
    d. Be prepared for over 1GB download ~1/2 hour on 6mbps cable
+
# Install the Xcode Tools
3. Install the Xcode Tools
+
## Double-clock on XcodeTools.mpkg
    a. Double-clock on XcodeTools.mpkg
+
## Perform Standard Install
    b. Perform Standard Install
+
## Open a terminal
    c. Open a terminal
+
## Type gcc and see something like<blockquote><tt>Bash 3.2$ gcc<br/>i686-apple-darwin9-gcc-4.0.1: no input files<br/>bash-3.2$</tt></blockquote>
    d. Type gcc and see something like
+
# Install Mercurial
        Bash 3.2$ gcc
+
## Go to http://www.selenic.com/mercurial/wiki/index.cgi/Download
        i686-apple-darwin9-gcc-4.0.1: no input files
+
## Select the Binary Package option
        bash-3.2$  
+
## Select Mac OS X
4. Install Mercurial
+
## Select Mercurial 1.0 for OS X 10.5 (if appropriate)
    a. Go to http://www.selenic.com/mercurial/wiki/index.cgi/Download
+
## Double-click  on package and follow instructions.
    b. Select the Binary Package option
+
## Execute command '''which hg''' in terminal or xterm
    c. Select Mac OS X
+
## If no hg listed, you may have to add /usr/local/bin to your path, e.g. export PATH=$PATH:/usr/local/bin
    d. Select Mercurial 1.0 for OS X 10.5 (if appropriate)
+
# Clone ns-3-allinone
    e. Double-click  on package and follow instructions.
+
## mkdir repos;cd !$
    f. Execute command
+
## hg clone http://code.nsnam.org/ns-3-allinone
        which hg
+
# Download and Build  
        in terminal or xterm
+
## cd ns-3-allinone
    g. If no hg listed, you may have to add /usr/local/bin to your
+
## ./download.py
        path, e.g. export PATH=$PATH:/usr/local/bin
+
## ./build.py
5. Clone ns-3-allinone
+
# Run Unit Tests<blockquote><tt>cd ns-3-dev<br/>./waf --check</tt></blockquote>
    a. mkdir repos;cd !$
+
# Run Regression Tests<blockqoote<tt>./waf --regression</tt></blockquote>
    b. hg clone http://code.nsnam.org/ns-3-allinone
+
6. Download and Build  
+
    a. cd ns-3-allinone
+
    b. ./download.py
+
    c. ./build.py
+
7. Run Unit Tests
+
    a.  cd ns-3-dev
+
    a. ./waf --check
+
8. Run Regression Tests
+
    a. ./waf --regression
+
  
 
----
 
----
 
[[User:Craigdo|Craigdo]] 18:34, 29 June 2009 (UTC)
 
[[User:Craigdo|Craigdo]] 18:34, 29 June 2009 (UTC)

Revision as of 00:35, 3 September 2010

Main Page - Current Development - Developer FAQ - Tools - Related Projects - Project Ideas - Summer Projects

Installation - Troubleshooting - User FAQ - HOWTOs - Samples - Models - Education - Contributed Code - Papers

Mac OS X Intel is a supported platform for ns-3. Perhaps the easiest way to get there from here is to just break down and join the Apple Developer Connection and get the development environment from there. It may be annoying but it's free and easy.

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

  1. Join Apple Developer Connection (for free internet user);
    1. Go to http://developer.apple.com/products/
    2. Select Join ADC Online Membership
    3. Log in with Apple ID
    4. Fill out Become an ADC Member form
    5. Tell them what kind of code you develop
    6. You are redirected to Developer Connection | Member Site
  2. Download XCode for your OS (3.0 for Leopard at writing) Disk Image;
    1. From Developer Connection | Member Site select Downloads, get directed to What¹s New
    2. Select Developer Tools from Downloads list
    3. Scroll down to XCode releases and select a Disk Image
    4. Be prepared for over 1GB download ~1/2 hour on 6mbps cable
  3. Install the Xcode Tools
    1. Double-clock on XcodeTools.mpkg
    2. Perform Standard Install
    3. Open a terminal
    4. Type gcc and see something like
      Bash 3.2$ gcc
      i686-apple-darwin9-gcc-4.0.1: no input files
      bash-3.2$
  4. Install Mercurial
    1. Go to http://www.selenic.com/mercurial/wiki/index.cgi/Download
    2. Select the Binary Package option
    3. Select Mac OS X
    4. Select Mercurial 1.0 for OS X 10.5 (if appropriate)
    5. Double-click on package and follow instructions.
    6. Execute command which hg in terminal or xterm
    7. If no hg listed, you may have to add /usr/local/bin to your path, e.g. export PATH=$PATH:/usr/local/bin
  5. Clone ns-3-allinone
    1. mkdir repos;cd !$
    2. hg clone http://code.nsnam.org/ns-3-allinone
  6. Download and Build
    1. cd ns-3-allinone
    2. ./download.py
    3. ./build.py
  7. Run Unit Tests
    cd ns-3-dev
    ./waf --check
  8. Run Regression Tests<blockqoote./waf --regression</blockquote>

Craigdo 18:34, 29 June 2009 (UTC)