steps for ns2.29 installation in ubuntu 10.04


Installation steps of NS2.29 on Ubuntu 10.04
Step 1: Download
download the ns2 copy from internet or put this command into terminal.
1] go to terminal and type
wget http://nchc.dl.sourceforge.net/sourceforge/nsnam/ns-allinone-2.29.3.tar.gz
2] u can download it from here.
Step 2: Extract
extract the tar file in home directory i.e. /home/username
OR
try this in terminal
tar -xzvf ns-allinone-2.29.3tar.gz
Step 3 : Install
just type following commands
cd ns-allinone-2.34
sudo apt-get install \
libx11-dev libxmu-dev libxmu-headers libxt-dev libtool g++-4.1
Edit some 'Makefile.in' :
otcl-1.11/, line 7 : CC = gcc-4.1
tclcl-1.17/, line 40 : CC = gcc-4.1
tclcl-1.17/, line 41 : CPP = g++-4.1
ns-2.29/ , line 36 : CC = gcc-4.1
ns-2.29/ , line 37 : CPP = g++-4.1
nam-1.11/, line 44 : CC = gcc-4.1
nam-1.11/, line 45 : CPP = g++-4.1
Do 'make clean' in otcl-1.11/ and next delete the 'Makefile'.
Now ./install will work.
Edit some paths ==a
$ gedit ~/.bashrc
Put these lines on that file. Off course, you might change /home/simulator for it
depends on where
you extract ns-allinone-2.29.tar.
# LD_LIBRARY_PATH
OTCL_LIB=/home/umesh/ns-allinone-2.29/otcl-1.11
NS2_LIB=/home/simulator/ns-allinone-2.29/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=/home/simulator/ns-allinone-2.29/tcl8.4.11/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/simulator/ns-allinone-2.34/bin:/home/simulator/ns-allinone-
2.29/tcl8.4.11/unix:/home/simulator/ns-allinone-2.29/tk8.4.11/unix
NS=/home/simulator/ns-allinone-2.29/ns-2.29/
NAM=/home/simulator/ns-allinone-2.29/nam-1.11/
export PATH=$PATH:$XGRAPH:$NS:$NAM
If your installation will be successful then this message would be fleshed on
your terminal screen.
Please put /home/umesh/ns-allinone-2.29/bin:/home/umesh/ns-allinone-
2.29/tcl8.4.11/unix:/home/umesh/ns-allinone-2.29/tk8.4.11/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /home/umesh/ns-allinone-2.29/otcl-1.11, /home/umesh/ns-
allinone-2.29/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>
(2) You MUST put /home/umesh/ns-allinone-2.29/tcl8.4.11/library into your
TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
(3) [OPTIONAL] To save disk space, you can now delete directories tcl8.4.11
and tk8.4.11. They are now installed under /home/umesh/ns-allinone-2.29/
{bin,include,lib}
After these steps, you can now run the ns validation suite with
cd ns-2.29; ./validate
For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list
archive
for related posts.
Step 4: validation
Now, the installation has been completed. Try:
$ ns
The “%” symbol appears on the screen. Type “exit” to quit.
Validation
To run the ns validation suite:
$ cd ns-2.29
$ ./validate
Validation process takes almost 45 minutes and after validation finished, we
are read to use all functionality of ns2 on our machine.

Comments

  1. sir when i run make clean' in otcl-1.11/ i got error no rule to make target clean. stop

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete

Post a Comment

Popular posts from this blog

how to free port 80 in windows

Universal Mobile Telecommunications System (UMTS)

WAMP Server Installation Guide for Windows 7 32/64 Bits