ns3-installation pybindgen problems

856 views
Skip to first unread message

Okusanya Damilola

unread,
Jan 10, 2016, 4:58:26 PM1/10/16
to ns-3-users
Sir, I have been having problems installing pybindgen with either bake or waf. I tried installing pybindgen with pip. These are the installation outputs

For bake(./bake.py deploy)
>> Searching for system dependency qt4 - OK
 >> Downloading gccxml-ns3 (target directory:gccxml) - (Nothing to do, source directory already exists) - OK
 >> Searching for system dependency python-dev - OK
 >> Searching for system dependency pygraphviz - OK
 >> Searching for system dependency pygoocanvas - OK
 >> Searching for system dependency setuptools - OK
 >> Searching for system dependency g++ - OK
 >> Downloading netanim-3.106 - (Nothing to do, source directory already exists) - OK
 >> Downloading pygccxml - (Nothing to do, source directory already exists) - OK
 >> Downloading pybindgen-0.17.0.post41+ngd10fa60 (target directory:pybindgen) - (Nothing to do, source directory already exists) - OK
 >> Downloading ns-3.24 - (Nothing to do, source directory already exists) - OK
 >> Building gccxml-ns3 - Problem
 > Problem: Optional dependency, module "gccxml-ns3" failed
   This may reduce the  functionality of the final build. 
   However, bake will continue since "gccxml-ns3" is not an essential dependency.
   For more information call bake with -v or -vvv, for full verbose mode.

 >> Building netanim-3.106 - OK
 >> Building pygccxml - OK
 >> Building pybindgen-0.17.0.post41+ngd10fa60 - Problem
 > Problem: Optional dependency, module "pybindgen-0.17.0.post41+ngd10fa60" failed
   This may reduce the  functionality of the final build. 
   However, bake will continue since "pybindgen-0.17.0.post41+ngd10fa60" is not an essential dependency.
   For more information call bake with -v or -vvv, for full verbose mode.

For waf (./waf configure)
Asking python-config for pyext '--cflags --libs --ldflags' flags   : yes 
Getting pyext flags from python-config                             : 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'                             : 0.17.0 
Checking for pybindgen version                                     : 0.17.0 
pybindgen (found '0.17.0'), (need '0.17.0.post41+ngd10fa60')
Checking boost includes                                            : 1_54 
Checking boost libs                                                : ok 
Checking for boost linkage                                         : ok 
Checking for click location                                        : not found 
Checking for program 'pkg-config'                                  : /usr/bin/pkg-config 
Checking for 'gtk+-2.0' >= 2.12                                    : yes 
Checking for 'libxml-2.0' >= 2.7                                   : yes 
Checking for type uint128_t                                        : not found 
Checking for type __uint128_t                                      : yes 
Checking high precision implementation                             : 128-bit integer (default) 
Checking for header stdint.h                                       : yes 
Checking for header inttypes.h                                     : yes 
Checking for header sys/inttypes.h                                 : not found 
Checking for header sys/types.h                                    : yes 
Checking for header sys/stat.h                                     : yes 
Checking for header dirent.h                                       : yes 
Checking for header stdlib.h                                       : yes 
Checking for header signal.h                                       : yes 
Checking for header pthread.h                                      : yes 
Checking for header stdint.h                                       : yes 
Checking for header inttypes.h                                     : yes 
Checking for header sys/inttypes.h                                 : not found 
Checking for library rt                                            : yes 
Checking for header sys/ioctl.h                                    : yes 
Checking for header net/if.h                                       : yes 
Checking for header net/ethernet.h                                 : yes 
Checking for header linux/if_tun.h                                 : yes 
Checking for header netpacket/packet.h                             : yes 
Checking for NSC location                                          : not found 
Checking for OpenFlow location                                     : not found 
Checking for 'sqlite3'                                             : yes 
Checking for header linux/if_tun.h                                 : yes 
Checking for program 'sudo'                                        : /usr/bin/sudo 
Checking for program 'valgrind'                                    : /usr/bin/valgrind 
Checking for 'gsl'                                                 : yes 
Checking for compilation flag -Wno-error=deprecated-d... support   : ok 
Checking for compilation flag -Wno-error=deprecated-d... support   : ok 
Checking for compilation flag -fstrict-aliasing support            : ok 
Checking for compilation flag -fstrict-aliasing support            : ok 
Checking for compilation flag -Wstrict-aliasing support            : ok 
Checking for compilation flag -Wstrict-aliasing support            : ok 
Checking for program 'doxygen'                                     : /usr/bin/doxygen 
---- Summary of optional NS-3 features:
Build profile                 : debug
Build directory               : 
Python Bindings               : not enabled (PyBindGen version not correct and newer version could not be retrieved)
BRITE Integration             : not enabled (BRITE not enabled (see option --with-brite))
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
GtkConfigStore                : enabled
XmlIo                         : enabled
Threading Primitives          : enabled
Real Time Simulator           : enabled
File descriptor NetDevice     : enabled
Tap FdNetDevice               : enabled
Emulation FdNetDevice         : enabled
PlanetLab FdNetDevice         : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
Network Simulation Cradle     : not enabled (NSC not found (see option --with-nsc))
MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 OpenFlow Integration     : not enabled (OpenFlow not enabled (see option --with-openflow))
SQlite stats data output      : enabled
Tap Bridge                    : enabled
PyViz visualizer              : not enabled (Python Bindings are needed but not enabled)
Use sudo to set suid bit      : not enabled (option --enable-sudo not selected)
Build tests                   : not enabled (defaults to disabled)
Build examples                : not enabled (defaults to disabled)
GNU Scientific Library (GSL)  : enabled
'configure' finished successfully (5.046s)

Thanks for the assistance!!!

Okusanya Damilola

unread,
Jan 27, 2016, 5:39:36 PM1/27/16
to ns-3-users
I figured it out. Use the Mercurial option. Way better than bake or the manual approach. 

nobody s

unread,
Oct 14, 2016, 3:35:05 PM10/14/16
to ns-3-users
Hey i´m having trouble with the same thing but is not working i´m working in ubuntu 14 and
ns3.25 i have the pybindgen-0.17.0.post41+ngd10fa60
but i still dont get the visualizer feature enable due to the python bindings can you explain in detail what steps you followed i would appreciate it very much

should i change the directory pybindgen-0.17.0.post41+ngd10fa60 to pybindgen?


thanks!


Reply all
Reply to author
Forward
0 new messages