Beruflich Dokumente
Kultur Dokumente
by Teerawat Issariyakul
http://www.ns2ultimate.com
March 2010
http://www.ns2ultimate.com 1
Outline
Known Issues as of March 2010
Working Solution
Step-by-Step Installation
◦ Ubuntu
◦ Windows
Acknowledgement
http://www.ns2ultimate.com 2
Known Issues as of March 2010
NS2 DOES NOT work under the following
environment.
click here to
get file
“setup.exe”
http://www.ns2ultimate.com 6
Installing Cygwin 1.7.1
2. Run the file “setup.exe”
Keep hitting
next and
provide
directory
information
http://www.ns2ultimate.com 7
Installing Cygwin 1.7.1
3. When you hit this page, choose the required
(e.g., gcc4) and optional packages
Search the
package
name here
Expand
package Click here to
category by install all the
clicking ‘+’ optional
package
http://www.ns2ultimate.com 8
Installing Cygwin 1.7.1
4. Open Cygwin
5. Download and extract ns2allinone2.35-RC3 package
5. Extract the package by calling
»cd ns-allinone-2.35-RC3
»./install
http://www.ns2ultimate.com 9
Installing Cygwin 1.7.1
7. When the installation completes adds the followings
into the file “.bashrc” located in your home directory
NSHOME=~/ns-allinone-2.35-RC3
OTCL_LIB=${NSHOME}/otcl-1.14
NS2_LIB=${NSHOME}/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:
$OTCL_LIB:$NS2_LIB
export TCL_LIBRARY=${NSHOME}/tcl8.5.8/library
PATH=$PATH:${NSHOME}/ns-2.35:${NSHOME}/nam-1.15
http://www.ns2ultimate.com 11
Acknowledgement
I would like to acknowledge
tumblr.com, slideshare.net
Lupe Krops for useful discussion.
Aslinda Hassan for confirming the problem with gcc version.
Tom Handerson and Sidney Doria for his suggestion on ns-2.35
Chaiyut Jandang for his blog (http://
jacaranda-jandaeng.blogspot.com/2009/12/ns2-ns-234-ubuntu-904.
html
) in Thai language
Sucha Supittayapornpong for introducing Slideshare.com
(http://suchaxplore.blogspot.com/).
http://www.ns2ultimate.com 12
For more information about NS
2
http://www.ns2ultimate.com 13