我的机器上有 Ubuntu 12.04。我根据 nsnam 中的说明将 ns3 安装到我的计算机上。到目前为止,我没有收到任何错误。我正在尝试使用 python 来运行我的代码。我安装了 python 2.7.3 并且 ./waf --pyrun examples/first.py 没有运行。我用谷歌搜索了很多,我找不到任何失败的答案。这是我的错误的 config.log:
from /home/shaul/tarballs/ns3/ns-3.13/bindings/python: Test does not build: Traceback (most recent call last):
File "/home/shaul/tarballs/ns3/ns-3.13/.waf-1.6.7-0a94702c61504c487a251b8d0a04ca9a/waflib/Tools/c_config.py", line 435, in run_c_code
bld.compile()
File "/home/shaul/tarballs/ns3/ns-3.13/.waf-1.6.7-0a94702c61504c487a251b8d0a04ca9a/waflib/Build.py", line 193, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
-> task failed (exit status 1):
{task 169552396: cxxprogram test.cpp.1.o -> testprog}
['/usr/bin/g++', 'test.cpp.1.o', '-o', '/home/shaul/tarballs/ns3/ns-3.13/build/.conf_check_9a1d0551212c9d703363e62dfbc51c79/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/lib', '-lpython2.7', '-Wl,-Bsymbolic-functions', '-Wl,-z,relro']
not found
from /home/shaul/tarballs/ns3/ns-3.13/bindings/python: The configuration failed
# try again with -L$python_LIBPL (some systems don't install the python library in $prefix/lib)