Vous êtes sur la page 1sur 2

Following are the changes while installation of ns-allinone-2.35 1. Use gcc-4.4 instead of ns-4.

3 sudo apt-get install build-essential autoconf automakelibxmu-dev gcc-4.4 2. Step(2) changes are as follows CC= @CC@ and change it to: CC= gcc-4.4 3.Give proper path of directory(ns-allinone-2.35) if ns-allinone-2.35 present on Desktop then path is like as follows $ cd /home/student/Desktop/ns-allinone-2.35 4.Make the following changes in ".bashrc" file Replace the following otcl-1.13 ->otcl-1.14 tcl8.4.18 ->tcl8.5.10 tk8.4.18 ->tk8.4.18

xgraph-12.1 ->xgraph12.2 5.Step(9) changes are as follows Replace cd ns-2.33 by cd ns-2.35 ============================================================= Everyone is having problem while installation of ns2.There might be a problem in ".bashrc" file. so im attaching a ".bashrc" file here. So append it at the end of bashrc file in the STEP(7). # LD_LIBRARY_PATH OTCL_LIB=/home/student/Desktop/ns-allinone-2.35/otcl-1.14 NS2_LIB=/home/student/Desktop/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_L IB # TCL_LIBRARY TCL_LIB=home/student/Desktop/ns-allinone-2.35/tcl8.5.10/library USR_LIB=/usr/lib export TCL_LIBRARY=$TCL_LIB:$USR_LIB #PATH XGRAPH=/home/student/Desktop/ns-allinone-2.35/bin:/home/student/Desktop/ns-allin one-2.35/tcl8.5.10/unix:/home/student/Desktop/ns-allinone-2.35/tk8.5.10/unix

#the above two lines beginning from xgraph and ending with unix should come on t he same line NS=/home/student/Desktop/ns-allinone-2.35/ns-2.35/ NAM=/home/student/Desktop/ns-allinone-2.35/nam-1.14/ PATH=$PATH:$XGRAPH:$NS:$NAM

Vous aimerez peut-être aussi