Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have Ubuntu 12.04 on my machine. I installed ns3 to my computer according to instructions in nsnam. I didn't get any errors up to here. I am trying to use python to run my code. I installed python 2.7.3 and ./waf --pyrun examples/first.py doesn't run. I googled a lot I couldnt find any answer why it fails. Here is the config.log for my error:

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
  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)
share|improve this question
I would suggest to also post your question on stackoverflow.com. There are more python questions asked and answered there. –  Gertjan Nov 10 '12 at 23:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.