2017-05-01 8 views
0

Ich wollte die NS3 und während ./build.py den Fehler installieren auftauchten:NS3 Fehler bei der Installation

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'] 

vollständige Protokoll: https://pastebin.com/tAkph7UR ich dieses Tutorial verfolgt haben: https://gnu-linux.org/installation-of-ns3-on-ubuntu.html Ich bin Ubuntu 14.04 auf Virtual Box läuft auf dem neuesten macOS

Antwort

0

ich dieses Tutorial befolgt haben und es funktioniert: https://www.youtube.com/watch?v=1N3CMrfxbG4

Wahrscheinlich war das Problem mit den VORAUSSETZUNGEN. Ich habe sie installiert, wie es in dem Video erwähnt wurde: 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

Die aktuellen ns-3-Entwickler hat eine minimale Anforderung von gcc-4.9, während die Standard-gcc von Ubuntu 14.04 noch gcc-4.8 ist, könnte man muss dein gcc aktualisieren. Überprüfen Sie die Notiz unter ns-3 installation guide for ubuntu für eine mögliche Möglichkeit, Ihr gcc von 4,8 auf 4,9 zu aktualisieren.