2017-05-01 174 views
0

我想安装的NS3和./build.py错误时出现了:NS3错误,而安装

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

回答

0

我已经按照本教程中的虚拟框运行Ubuntu 14.04和它的工作:https://www.youtube.com/watch?v=1N3CMrfxbG4

也许问题连接到prerequisits。我安装了它们,就像它在视频中提到的那样: 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

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。