ns3-dev installation error

873 views
Skip to first unread message

inam

unread,
Aug 29, 2017, 4:03:41 AM8/29/17
to ns-3-users
Hi All,
I am trying to install the ns3-dev, for which I am following https://www.nsnam.org/support/faq/setup/

But after the clone step using:
hg clone http://code.nsnam.org/ns-3-allinone
cd ns-3-allinone 
./download.py
and I run the 
./build.py

I get the following output:

# Build NetAnim
Entering directory `netanim'
 =>  qmake -v
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
Could not find qmake in the default path
 =>  qmake-qt4 -v
Could not find qmake-qt4 in the default path
 =>  qmake NetAnim.pro
qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
Error building NetAnim.
Skipping NetAnim ....
Leaving directory `netanim'
# Build NS-3
Entering directory `./ns-3-dev'
Note: configuring ns-3 without pybindgen
 =>  /usr/bin/python waf configure
Setting top to                           : /home/inam/ns-3-allinone/ns-3-dev 
Setting out to                           : /home/inam/ns-3-allinone/ns-3-dev/build 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking for cc version                  : 5.4.0 
Checking for 'g++' (C++ compiler)        : /usr/bin/g++ 
Checking for compilation flag -Wl,--soname=foo support : ok 
Checking for program 'python'                          : /usr/bin/python 
Checking for python version                            : (2, 7, 12, 'final', 0) 
python-config                                          : /usr/bin/python-config 
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes 
Testing pyembed configuration                                      : yes 
Asking python-config for pyext '--cflags --libs --ldflags' flags   : yes 
Testing pyext configuration                                        : yes 
Checking for compilation flag -fvisibility=hidden support          : ok 
Checking for compilation flag -Wno-array-bounds support            : ok 
Checking for pybindgen location                                    : ../pybindgen (guessed) 
Checking for python module 'pybindgen'                             : ok 
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named version
Checking for pybindgen version                                     :  
Traceback (most recent call last):
  File "/home/inam/ns-3-allinone/ns-3-dev/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 110, in waf_entry_point
    run_commands()
  File "/home/inam/ns-3-allinone/ns-3-dev/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 171, in run_commands
    ctx=run_command(cmd_name)
  File "/home/inam/ns-3-allinone/ns-3-dev/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Scripting.py", line 162, in run_command
    ctx.execute()
  File "/home/inam/ns-3-allinone/ns-3-dev/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Configure.py", line 87, in execute
    super(ConfigurationContext,self).execute()
  File "/home/inam/ns-3-allinone/ns-3-dev/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 93, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/inam/ns-3-allinone/ns-3-dev/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 134, in recurse
    user_function(self)
  File "/home/inam/ns-3-allinone/ns-3-dev/wscript", line 457, in configure
    conf.recurse('bindings/python')
  File "/home/inam/ns-3-allinone/ns-3-dev/.waf-1.8.19-b1fc8f7baef51bd2db4c2971909a568d/waflib/Context.py", line 134, in recurse
    user_function(self)
  File "/home/inam/ns-3-allinone/ns-3-dev/bindings/python/wscript", line 198, in configure
    if not (split_version(pybindgen_version) >= split_version(REQUIRED_PYBINDGEN_VERSION)):
  File "/home/inam/ns-3-allinone/ns-3-dev/bindings/python/wscript", line 79, in split_version
    return (int(ver[0]), int(ver[1]), int(ver[2]), 0)
ValueError: invalid literal for int() with base 10: ''
Traceback (most recent call last):
  File "./build.py", line 171, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 162, in main
    build_ns3(config, build_examples, build_tests, args, build_options)
  File "./build.py", line 81, in build_ns3
    run_command(cmd) # waf configure ...
  File "/home/inam/ns-3-allinone/util.py", line 25, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python', 'waf', 'configure'] exited with code 2


Can anyone help, please?

Regards
Inam

Ankit Deepak

unread,
Aug 29, 2017, 6:49:59 AM8/29/17
to ns-3-...@googlegroups.com
Hello Inam,

From what I can get from your log is that, you have a pybindgen in parallel to your ns-3-dev folder, but it is not yet built, hence the version number is not generated. 

Try going to pybindgen and building it as per its readme instruction.

-Ankit

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages