Wednesday, March 16, 2011

NS 2 Installation on fedora ........


NS-2.30 INSATALLATION STEPS
BEST “INSTRUCTION” IS TO READ CAREFULLY.
STEP 1
DO AS SUPER USER,TYPE IN TERMINAL WINDOW AS "su - ",then it will ask for root enter your root password and then follow these instruction.

INSTALL THE “package dependencies”
yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
yum install libXmu-devel
STEP 2
INSTALL NS-2.30 tar FILE and untar it as mentioned same as Najwan file. Instead the version is new.
$ wget http://www.isi.edu/nsnam/dist/ns-allinone-2.30.tar.gz/
$ tar -xzf ns-allinone-2.30tar.gz
$ cd ns-allinone-2.30   “dont use .tar.gz at this step while going into directory”
$. /install
STEP 3
make and /etc file
Edit ~/.bashrc
RESTART THE TERMINAL AND WRITE AS GIVEN:
gedit ~/.bashrc
 2. YOU HAVE TO COPY-PASTE THE FOLLOWING ADDRESS AT THE END OF “.bashrc”.
then type these commands afterward.

 # LD_LIBRARY_PATH
    OTCL_LIB=/usr/local/ns-allinone-2.30/otcl-1.12
    NS2_LIB=/usr/local/ns-allinone-2.30/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=/usr/local/ns-allinone-2.30/tcl8.4.14/library
    USR_LIB=/usr/lib
    export TCL_LIBRARY=$TCL_LIB:$USR_LIB

    # PATH
    XGRAPH=/usr/local/ns-allinone-2.30/bin:/usr/local/ns-allinone-2.30/tcl8.4.13/unix:/usr/local/ns-allinone-2.30/tk8.4.13/unix
    NS=/usr/local/ns-allinone-2.30/ns-2.30/
    NAM=/usr/local/ns-allinone-2.30/nam-1.12/
    PATH=$PATH:$XGRAPH:$NS:$NAM

[  You can use these steps to install the later version of NS, such as ns-allinone-2.31 and ns-allinone-2.32 BUT make sure the version number is correct!  This includes the nam version, tcl version, tk version and the otcl version. ]


No comments: