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