Skip to content

Instantly share code, notes, and snippets.

@manniru
Last active August 29, 2015 14:05
Show Gist options
  • Save manniru/1b3b5862243f932e2393 to your computer and use it in GitHub Desktop.
Save manniru/1b3b5862243f932e2393 to your computer and use it in GitHub Desktop.
sudo apt-get install tcl 8.4-dev tk 8.4-dev
sudo apt-get install build-essential autoconf automake libxmu-dev
bashrc
# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.31/otcl-1.13
NS2_LIB=/your/path/ns-allinone-2.31/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/your/path/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib 18
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/your/path/ns-allinone-2.31/bin:/your/path/ns-allinone-2.31/tcl8.4.14/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
NS=/your/path/ns-allinone-2.31/ns-2.31/
NAM=/your/path/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
/////////////////////////////////////////////////
http://ramakrishnamundugar.blogspot.com/2012/10/installing-ns-231-in-ubuntu-1204.html
http://ajlinx.wordpress.com/2013/06/19/install-ns2-ns-allinone-2-35-on-ubuntu-12-04-for-beginners/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment