zoukankan      html  css  js  c++  java
  • How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04

    Abstract : NS2  widely uses in network simulator. Toady let's install it.

    Introduce : Ns is a discrete event simulator targeted at networking research. Ns provides substantial support for simulation of TCP, routing, and multicast protocols over wired and wireless (local and satellite) networks.


    I need to do some experiments in NS2 and I download 2.3.5 version to install it.

    Next some steps:
    1. install some .dep :
    $ sudo apt-get install build-essential
    $ sudo apt-get install tcl8.5 tcl8.5-dev tk8.5 tk8.5-dev
    $ sduo apt-get install libxmu-dev libxmu-headers

    2. download /ns-allinone-2.35 from ns2 website(http://www.isi.edu/nsnam/ns/) and decompress it.
    $ tar xvfz ns-allinone-2.35.tar.gz

    3. enter ns-allinone-2.35 dir and tpye : sudo  ./install
    when it has done, it print some information on monitor.
    How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04



    Now that NS2 is installed, there are some environment variables that need to be added to your profile. This can be done by editing the .bashrc file. Be sure to change “/path/to” to the path of where you have extracted NS2.

    4. gedit ~/.bashrc to set the environment.

    export PATH=$PATH:/path/to/ns-allinone-2.35/bin/path/to/ns-allinone-2.35/tcl8.5.10/unix:/path/to/ns-allinone-2.35/tk8.5.10/unix

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/ns-allinone-2.35/otcl-1.14:/path/to/home/nick/my_project/ns2/ns-allinone-2.35/lib

    export TCL_LIBRARY=$TCL_LIBRARY:/path/to/ns-allinone-2.35/tcl8.5.10/library

    5. You need to validate NS2 to check if everything is ok but beware that it will take lots of time:
    cd ns-2.35 then ./validate and tpye ns

    How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04

    How to Install and Run Network Simulator (NS2) v2.35 on Ubuntu 10.04


  • 相关阅读:
    win8 开发之旅(1) 连连看游戏开发 前奏
    win8 开发之旅(2) 连连看游戏开发 项目错误的总结
    常见的排序算法五——堆排序
    我与mongodb 二三事(1)
    常见的排序算法四——直接选择排序
    我与mongodb 二三事(2)
    oracleHelper的使用
    公司A、公司B、公司C……
    javascript调用C#后台程序执行查询
    通过翻译学英语
  • 原文地址:https://www.cnblogs.com/nickchan/p/3104382.html
Copyright © 2011-2022 走看看