2017-12-07 4 views
0

Ich versuche NS-3 unter Ubuntu zu installieren. Ich habe bereits aktualisiert und installiert alle benötigten Pakete, aber wenn ich tun möchte build.py dieser Fehler auftritt:Fehler beim Installieren von NS-3 unter Ubuntu

cc1plus: all warnings being treated as errors 
Waf: Leaving directory `/home/ali/Desktop/ns-allinone-3.21/ns-3.21/build' 
Build failed 
-> task in 'ns3-wave' failed (exit status 1): 
{task 140530495514448: cxx wifi-80211p-helper.cc -> wifi-80211p- 
helper.cc.1.o} 
['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno- 
error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '- 
fPIC', '-pthread', '-I.', '-I..', '-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_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', 
'../src/wave/helper/wifi-80211p-helper.cc', '-c', '-o', 
'src/wave/helper/wifi-80211p-helper.cc.1.o'] 
Traceback (most recent call last): 
File "./build.py", line 170, in <module> 
sys.exit(main(sys.argv)) 
File "./build.py", line 161, in main 
build_ns3(config, build_examples, build_tests, args, build_options) 
File "./build.py", line 81, in build_ns3 
run_command([sys.executable, "waf", "build"] + build_options) 
File "/home/ali/Desktop/ns-allinone-3.21/util.py", line 24, in run_command 
raise CommandError("Command %r exited with code %i" % (argv, retval)) 
util.CommandError: Command ['/usr/bin/python', 'waf', 'build'] exited with 
code 1 

Was soll ich tun? Bitte hilf mir, es ist wichtig für mich.

Antwort

0

Welches System bauen Sie? Versuchen Sie mit der neuesten Version ns-3.27 und stellen Sie sicher, dass Ihr System den Anforderungen entspricht (z. B. gcc/g ++ Version)

0

Erstellen Sie das System im Verzeichnis von 'ns-allinone-3.21'. Nicht in 'ns-3.21'. Deeplearnning/ns-allinone-3.2 $ ./build Verwenden Sie das Handbuch. https://www.nsnam.org/doxygen/

Verwandte Themen