How to Install NS2 in Fedora

How to Install NS2 in Fedora

Time needed: 6 minutes

Follow from Step 1 to Step 38 in order to create NS2 using Simulator projects. Quick guide to create NS2 in Fedora. Reach us , if you want an customize NS2 simulator projects works for scholars.

  1. Package dependencies gcc

    Initially , install the needed package dependencies, by using Open a bash shell and type following command at prompt:
    su
    install gcc-c++
    yum install gcc-c++Package dependencies gcc

  2. Pacakage dependencies – yum install libX11-devel

    Install the needed package dependencies, by using Open a bash shell and type following command at promptpackage dependencies yum install libX11-devel

  3. Pacakage dependencies – yum install xorg-x11-proto-devel

    Install the needed package dependencies, by using Open a bash shell and type following command at promptproto-devel

  4. Pacakage dependencies – yum install libXt-devel

    Install the needed package dependencies, by using Open a bash shell and type following command at promptinstall libXt-devel

  5. Pacakage dependencies – yum install libXmu-devel

    Install the needed package dependencies, by using Open a bash shell and type following command at prompt:
    and also execute the below command for nam installationinstall libXmu-devel

  6. Tcl installation

    Next, perform the process of tcl installation by , Open the bash shell and type the below command at prompt:
    su
    cd
    wget http://prdownloads.sourceforge.net/tcl/tcl8.4.14-src.tar.gztcl installation

  7. Tcl cd installation

    Next, perform the process of tcl installation by , Open the bash shell and type the below command at prompt:
    cd /usr/share/tcl cd installation

  8. Tcl tar zxvf installation

    Next, perform the process of tcl installation by , Open the bash shell and type the below command at prompt:
    tar -zxvf /root/tcl8.4.14-src.tar.gztar zxvf tcl installation

  9. Tcl configure installation

    Next, perform the process of tcl installation by , Open the bash shell and type the below command at prompt:
    cd /usr/share/tcl8.4.14/unix/
    ./configureconfigure tcl installation

  10. Tcl make installation

    Next, perform the process of tcl installation by , Open the bash shell and type the below command at prompt:
    makeTcl make installation

  11. Tcl make install installation

    Next, perform the process of tcl installation by , Open the bash shell and type the below command at prompt:
    make installTcl make install installation

  12. Tcl tcl8.4.14 src tar installation

    Next, perform the process of tcl installation by , Open the bash shell and type the below command at prompt:
    rm -f /root/tcl8.4.14-src.tar.gzTcl tcl8.4.14 src tar installation

  13. Tk installation

    Next , perform the tk installation process by use the Open the bash shell and type below commands at prompt:
    su
    cd
    wget http://prdownloads.sourceforge.net/tcl/tk8.4.14-src.tar.gztk installation

  14. Tk cd installation

    Next , perform the tk installation process by use the Open the bash shell and type below commands at prompt:
    cd /usr/share/Tk cd installation

  15. Tk cd unix tar installation

    Next , perform the tk installation process by use the Open the bash shell and type below commands at prompt:
    cd /usr/share/tk8.4.14/unix/tk unix installation

  16. Tk unix installation

    Next , perform the tk installation process by use the Open the bash shell and type below commands at prompt:
    cd /usr/share/tk8.4.14/unix/tk unix installation

  17. Tk configure installation

    Next , perform the tk installation process by use the Open the bash shell and type below commands at prompt:./configuretk configure installation

  18. Tk make installation

    Next , perform the tk installation process by use the Open the bash shell and type below commands at prompt:
    maketk make installation

  19. Tk make install installation

    Next , perform the tk installation process by use the Open the bash shell and type below commands at prompt:
    make installtk make install installation

  20. Tk src tar installation

    Next , perform the tk installation process by use the Open the bash shell and type below commands at prompt:
    tar -zxvf /root/tk8.4.14-src.tar.gztk src tar installation

  21. Otcl installation

    Next , perform the otcl installation process by use the Open the bash shell and type below commands at prompt:
    su
    cd
    wget http://downloads.sourceforge.net/otcl-tclcl/otcl-src-1.12.tar.gz
    cd /usr/shareotcl installation

  22. Otcl zxvf installation

    Next , perform the otcl installation process by use the Open the bash shell and type below commands at prompt:
    tar -zxvf /root/otcl-src-1.12.tar.gzOtcl zxvf installation

  23. Otcl configure installation

    Next , perform the otcl installation process by use the Open the bash shell and type below commands at prompt:
    cd /usr/share/otcl-1.12/./configure –with-tcl=/usr/share/tcl8.4.14/Otcl configure installation

  24. Otcl make installation

    Next , perform the otcl installation process by use the Open the bash shell and type below commands at prompt:
    makemake otcl installation

  25. Otcl kwrite Makefile installation

    Next , perform the otcl installation process by use the Open the bash shell and type below commands at prompt:
    kwrite Makefilekwrite Makefile otcl installation

  26. Tclcl installation

    Next , perform the tclcl installation process by use the Open the bash shell and type below commands at prompt:
    su
    cd
    wget http://downloads.sourceforge.net/otcl-tclcl/tclcl-src-1.18.tar.gztclcl installation

  27. Tclcl configure installation

    Next , perform the tclcl installation process by use the Open the bash shell and type below commands at prompt:
    cd /usr/share
    tar -zxvf /root/tclcl-src-1.18.tar.gz
    cd /usr/share/tclcl-1.18/
    ./configure –with-tcl=/usr/share/tcl8.4.14/Tclcl configure installation

  28. Tclcl make installation

    Next , perform the tclcl installation process by use the Open the bash shell and type below commands at prompt:
    maketclcl make installation

  29. Tclcl make install installation

    Next , perform the tclcl installation process by use the Open the bash shell and type below commands at prompt:
    make installtclcl make install installation

  30. NS2 installation

    Next , perform the ns2 installation process by use the Open the bash shell and type below commands at prompt:
    su
    cd
    wget http://downloads.sourceforge.net/nsnam/ns-src-2.30.tar.gzns2 installation

  31. NS2 cd installation

    Next , perform the ns2 installation process by use the Open the bash shell and type below commands at prompt:
    cd /usr/share
    tar -zxvf /root/ns-src-2.30.tar.gz
    cd /usr/share/ns-2.30/cd ns2 installation

  32. NS2 Configure installation

    Next , perform the ns2 installation process by use the Open the bash shell and type below commands at prompt:
    ./configure (or ./configure –enable-debug if you want to use gdb for debugging)configure ns2 installation

  33. NS2 Make installation

    Next , perform the ns2 installation process by use the Open the bash shell and type below commands at prompt:
    makemake ns2 installation

  34. NS2 make install installation

    make install
    echo ‘export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:’ > /etc/profile.d/ns.sh
    chmod 0733 /etc/profile.d/ns.sh
    echo ‘export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:’ > $HOME/.bashrc
    rm -f /root/ns-src-2.30.tar.gz
    Next, perform the process of check if ns2 is well installed, type at promp :
    ns
    then ewe should see the ‘%’ simbol, in the promt windowmake install ns2 installation

  35. NAM cd installation

    Next , perform the nam installation process by use the Open the bash shell and type below commands at prompt:
    su
    cd
    wget http://downloads.sourceforge.net/nsnam/nam-src-1.12.tar.gzcd nam installation

  36. NAM configure installation

    cd /usr/share
    tar -zxvf /root/nam-src-1.12.tar.gz
    cd /usr/share/nam-1.12/
    ./configureconfigure nam installation

  37. NAM Make installation

    Next , perform the nam installation process by use the Open the bash shell and type below commands at prompt:
    makemake nam installation

  38. NAM Make Install installation

    Next , perform the nam installation process by use the Open the bash shell and type below commands at prompt:
    make install
    rm -f /root/nam-src-1.12.tar.gz
    Next, perform the process of check if nam is well installed, type at promp:
    nam
    then we should see the nam windowmake install nam installation

If you face any issues on How to Install NS2 in Fedora, reach us to create an customize NS2 simulation projects.

Related Links

Live Tasks
Technology Ph.D MS M.Tech
NS2 75 117 95
NS3 98 119 206
OMNET++ 103 95 87
OPNET 36 64 89
QULANET 30 76 60
MININET 71 62 74
MATLAB 96 185 180
LTESIM 38 32 16
COOJA SIMULATOR 35 67 28
CONTIKI OS 42 36 29
GNS3 35 89 14
NETSIM 35 11 21
EVE-NG 4 8 9
TRANS 9 5 4
PEERSIM 8 8 12
GLOMOSIM 6 10 6
RTOOL 13 15 8
KATHARA SHADOW 9 8 9
VNX and VNUML 8 7 8
WISTAR 9 9 8
CNET 6 8 4
ESCAPE 8 7 9
NETMIRAGE 7 11 7
BOSON NETSIM 6 8 9
VIRL 9 9 8
CISCO PACKET TRACER 7 7 10
SWAN 9 19 5
JAVASIM 40 68 69
SSFNET 7 9 8
TOSSIM 5 7 4
PSIM 7 8 6
PETRI NET 4 6 4
ONESIM 5 10 5
OPTISYSTEM 32 64 24
DIVERT 4 9 8
TINY OS 19 27 17
TRANS 7 8 6
OPENPANA 8 9 9
SECURE CRT 7 8 7
EXTENDSIM 6 7 5
CONSELF 7 19 6
ARENA 5 12 9
VENSIM 8 10 7
MARIONNET 5 7 9
NETKIT 6 8 7
GEOIP 9 17 8
REAL 7 5 5
NEST 5 10 9
PTOLEMY 7 8 4

Workflow

YouTube Channel

Unlimited Network Simulation Results available here.