Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
gz to home directory
*From desktop open the terminal then copy & paste below 3 commands one by
one(each time press enter Key)
cd ns-allinone-2.35/ns-2.35/tcl/ex/
OR………………….……………..OR…………………………………..OR………………………………………..OR………………..
*From desktop open the terminal then copy & paste below commands one by one(each
time press enter Key)
cd ns-allinone-2.35/ns-2.35/linkstate/
cd ..
cd ..
cd otcl-1.14/
CD ..
./install
# LD_LIBRARY_PATH
OTCL_LIB=/home/admin1/ns-allinone-2.35/otcl-1.14
NS2_LIB=/home/admin1/ns-allinone-2.35/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/admin1/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/admin1/ns-allinone-2.35/bin:/home/admin1/ns-allinone-
2.35/tcl8.5.10/unix:/home/admin1/ns-allinone-2.35/tk8.5.10/unix
#the above two lines beginning from xgraph and ending with unix should come on
the same line
NS=/home/admin1/ns-allinone-2.35/ns-2.35/
NAM=/home/admin1/ns-allinone-2.35/nam-1.15/
PATH=$PATH:$XGRAPH:$NS:$NAM
source ~/.bashrc
sudo apt-get install libperl4-corelibs-perl
sudo apt-get install xgraph
if error occurs like “Command 'ns' not found, but can be installed with:
Even after this if it gives same error then update ubuntu(in show
Applications icon- software updater) then again follow above three
steps.
wget http://archive.ubuntu.com/ubuntu/pool/universe/x/xgraph/xgraph_12.1-
17_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/libx/libx11/libx11-6_1.6.4-
3ubuntu0.2_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.27-
3ubuntu1_amd64.deb