NS3安装过程

来源:互联网 发布:acr软件下载 编辑:程序博客网 时间:2024/04/26 07:57

操作系统: Fedora 16

NS版本:ns-3.17


1. 前奏,参考这里安装

2. 去官网下载tarball安装包和document来参考

cdmkdir workspacecd workspacewget http://www.nsnam.org/releases/ns-allinone-3.17.tar.bz2tar xjf ns-allinone-3.17.tar.bz2
3. 进目录安装

./build.py
在这个过程中,出现了

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 14: ordinal not in range(128)

一查原因是目录路径中有中文。。换个路径就可以了

4. 结束

出现如下结果:

Waf: Leaving directory `/home/caihong/ns-allinone-3.17/ns-3.17/build''build' finished successfully (9m32.836s)Modules built:antenna                   aodv                      applications             bridge                    buildings                 config-store             core                      csma                      csma-layout              dsdv                      dsr                       emu                      energy                    fd-net-device             flow-monitor             internet                  lte                       mesh                     mobility                  mpi                       netanim (no Python)      network                   nix-vector-routing        olsr                     point-to-point            point-to-point-layout     propagation              spectrum                  stats                     tap-bridge               test (no Python)          tools                     topology-read            uan                       virtual-net-device        visualizer               wifi                      wimax                    Modules not built (see ns-3 tutorial for explanation):brite                     click                     openflow                 Leaving directory `./ns-3.17'

已成功安装

5. 测试(需要build的时候加上--enable-test参数)

./test.py -c core
可以看到一行行PASS神马的。。