ns3 dce安装



  • 1.安装ns-3依赖的软件包

    apt-get update
    apt-get -y install gcc g++ python
    apt-get -y install gcc g++ python python-dev
    apt-get -y install mercurial
    apt-get -y install bzr
    apt-get -y install gdb valgrind
    apt-get -y install gsl-bin
    在Ubuntu14.04环境下libgsl0-dbg libgsl0-dev libgsl0ldbl
    在Ubuntu16.04环境下安装libgsl-dev libgsl2
    apt-get -y install flex bison libfl-dev
    apt-get -y install tcpdump
    apt-get -y install sqlite sqlite3 libsqlite3-dev
    apt-get -y install libxml2 libxml2-dev
    apt-get -y install libgtk2.0-0 libgtk2.0-dev
    apt-get -y install vtun lxc
    apt-get -y install uncrustify
    apt-get -y install doxygen graphviz imagemagick
    apt-get -y install texlive texlive-extra-utils texlive-latex-extra
    apt-get -y install python-sphinx dia
    apt-get -y install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev
    apt-get -y install libboost-signals-dev libboost-filesystem-dev
    apt-get -y install openmpi*

    2.安装dce依赖的软件包

    apt-get install libcurl4-openssl-dev libclang-dev libc6-i386 gccxml libqt4-dev
    apt install libpcap-dev libexpat1-dev libdb-dev flex libsysfs-dev libssl-dev lksctp-dev

    3.安装bake

    hg clone http://code.nsnam.org/bake bake

    修改.profile在文件尾添加以下三行,并更新环境变量(运行 . .profile)
    BAKE_HOME="$HOME/bake"
    PATH="$PATH:$BAKE_HOME"
    PYTHONPATH="/usr/lib/python2.7:$BAKE_HOME"

    修改文件系统限制
    ulimit –n 2048

    创建并进入安装目录
    mkdir dce
    cd dce

    选择安装版本
    bake.py configure -e dce-ns3-1.5
    下载dce-ns3-1.5
    bake.py download
    出现问题:缺少ccnx-0.6.2.tar.gz iperf-2.0.5.tar.gz thttpd-2.25b.tar.gz
    原因:网站被墙
    解决方案:通过国外服务器下载

    4.编译dce-ns3

    bake.py build
    克隆LL-SimpleWireless,将内容放入/scr/simple-wireless
    git clone https://github.com/mit-ll/LL-SimpleWireless.git
    cp LL-SimpleWireless/* <DCE>/source/ns-3.22/src/simple-wireless/

    5.运行样例



  • 整理的好,当时咱们一起做这个的时候真的是很艰难👍



  • 这个可以写一个一键脚本吗,自动安装。不过感觉会遇到一些报错就很尴尬,没法自动处理


 

Copyright © 2018 bbs.dian.org.cn All rights reserved.

Looks like your connection to Dian was lost, please wait while we try to reconnect.