安装时出现NS3错误

时间:2017-05-01 15:43:43

标签: ubuntu installation ubuntu-14.04 ns-3

我想安装NS3,在./build.py期间出现错误:

Waf: Leaving directory `/home/user/NS3repo/ns-3-allinone/ns-3-dev/build'
Build failed
     -> task in 'ns3-wifi' failed (exit status 1):
     {task 140583796598928: cxx wifi-mac-queue.cc -> wifi-mac-queue.cc.1.o}
     ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-std=c++11', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-fPIC', '-pthread', '-I.', '-I..', '-DNS3_BUILD_PROFILE_DEBUG', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DHAVE_SQLITE3=1', '../src/wifi/model/wifi-mac-queue.cc', '-c', '-o', '/home/user/NS3repo/ns-3-allinone/ns-3-dev/build/src/wifi/model/wifi-mac-queue.cc.1.o']

完整日志:https://pastebin.com/tAkph7UR 我一直在关注本教程:https://gnu-linux.org/installation-of-ns3-on-ubuntu.html 我在最新的macOS上在Virtual Box上运行Ubuntu 14.04

2 个答案:

答案 0 :(得分:0)

我已按照本教程进行操作:https://www.youtube.com/watch?v=1N3CMrfxbG4

问题可能与先决条件有关。我按照视频中提到的那样安装了它们: sudo apt-get install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml

答案 1 :(得分:0)

当前的ns-3-dev对gcc-4.9的要求很低,而Ubuntu 14.04的默认gcc仍然是gcc-4.8,你可能需要更新你的gcc。查看ns-3 installation guide for ubuntu处的注释,了解将gcc从4.8升级到4.9的可能方法。