PyViz visualizer not enabled

3,523 views
Skip to first unread message

Toshi

unread,
Jun 10, 2016, 2:30:14 AM6/10/16
to ns-3-users
Hello,

I have some trouble to build ns-3 with visualizer.

I use CentOS 7.2 and python 2.7.5.
when I configure Waf - visualiser is "not enabled" - I could not find how to enable it.
What should I do?

./waf clean
./waf --build-profile=debug --enable-examples --enable-tests configure

Here are the configuration info:
Setting top to                           : /home/shiobara/ns-allinone-3.24/ns-3.24
Setting out to                           : /home/shiobara/ns-allinone-3.24/ns-3.24/build
Checking for 'gcc' (C compiler)          : /usr/bin/gcc
Checking for cc version                  : 4.8.5
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, 5, 'final', 0)
python-config                                          : /usr/bin/python-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : not found
Checking boost includes                                            : 1_53
Checking boost libs                                                : ok
Checking for boost linkage                                         : Could not link against boost libraries using supplied options
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 (Python library or headers missing)
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                   : enabled
Build examples                : enabled
GNU Scientific Library (GSL)  : enabled
'configure' finished successfully (4.477s)

Konstantinos

unread,
Jun 10, 2016, 4:17:44 AM6/10/16
to ns-3-users
Hi,

The output suggest that the are dependencies missing.

PyViz visualizer              : not enabled (Python Bindings are needed but not enabled)

When you look at the Python Bindings you will get
Python Bindings               : not enabled (Python library or headers missing)

Since you are using CentOS this should relevant

Regards,
K

Toshi

unread,
Jun 12, 2016, 4:16:47 AM6/12/16
to ns-3-users
Thanks Konstantinos.
I read https://www.nsnam.org/wiki/Installation#CentOS and I installed and configured again.

but the outputs is still
"Python Bindings               : not enabled (Python library or headers missing)".

Regards,

2016年6月10日金曜日 17時17分44秒 UTC+9 Konstantinos:

Tommaso Pecorella

unread,
Jun 12, 2016, 6:23:56 AM6/12/16
to ns-3-users
yum install python-devel

Toshi

unread,
Jun 13, 2016, 4:44:39 AM6/13/16
to ns-3-users
Thanks Tommaso,

but I have installed the latest python-devel (python-devel-2.7.5-34.el7.x86_64).
So, I wonder what I should do next...

Regards,

2016年6月12日日曜日 19時23分56秒 UTC+9 Tommaso Pecorella:

Tommaso Pecorella

unread,
Jun 13, 2016, 6:06:28 AM6/13/16
to ns-3-users
Hi,

that's pretty strange. It is possible that your python dev location isn't correctly added to your path.
Try the suggestions outlined here:


T.
Reply all
Reply to author
Forward
0 new messages