zoukankan      html  css  js  c++  java
  • ubuntu 12.04 安装NS2

    在ubuntu上安装ns2,首先需要安装:

    #sudo apt-get remove gcc

    # sudo apt-get install build-essential

    # sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev

    # sudo apt-get install libxmu-dev libxmu-headers

     

    接着到ns2的SourceForge去下载软件包,目前的最新版是2.35。

    把解压缩后的文件夹,搬到想安装的位置去。例如:

    # tar xvfz ns-allinone-2.35.tar.gz

    cd /home/administrator/ns-allinone-2.35

    sudo ./install

    安装完成后 提示

    IMPORTANT NOTICES:

    (1) You MUST put /home/administrator/ns-allinone-2.35/otcl-1.14, /home/administrator/ns-allinone-2.35/lib,
        into your LD_LIBRARY_PATH environment variable.
        If it complains about X libraries, add path to your X libraries
        into LD_LIBRARY_PATH.
        If you are using csh, you can set it like:
            setenv LD_LIBRARY_PATH
        If you are using sh, you can set it like:
            export LD_LIBRARY_PATH=

    (2) You MUST put /home/administrator/ns-allinone-2.35/tcl8.5.10/library into your TCL_LIBRARY environmental
        variable. Otherwise ns/nam will complain during startup.


    After these steps, you can now run the ns validation suite with
    cd ns-2.35; ./validate

    修改环境变量

    export PATH="$PATH:/home/administrator/ns-allinone-2.35/bin:/home/administrator/ns-allinone-2.35/tcl8.5.10/unix:/home/administrator/ns-allinone-2.35/tk8.5.10/unix"

    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/administrator/ns-allinone-2.35/otcl-1.14, /home/administrator/ns-allinone-2.35/lib"

    export TCL_LIBRARY="$TCL_LIBRARY:home/administrator/ns-allinone-2.35/tcl8.5.10/library "

    完成后在新终端窗口 输入ns

    出现% 则安装成功

  • 相关阅读:
    poj 1026 Cipher
    python中的global
    基于DL的文本分类综述
    K近邻算法学习
    聚类评价指标学习
    pytorch自动求导学习
    反向传播的推导
    二分搜索常用【转载】
    《Attention is all you need》论文学习
    5-28日|5-30日
  • 原文地址:https://www.cnblogs.com/buxianghe/p/2970905.html
Copyright © 2011-2022 走看看