Bug 1273 - Better error message on missing Python development files
Better error message on missing Python development files
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: build system
pre-release
PC All
: P5 enhancement
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-29 08:18 UTC by Vedran Miletić
Modified: 2012-02-20 07:17 UTC (History)
1 user (show)

See Also:


Attachments
config.log (54.33 KB, text/x-log)
2011-09-29 08:18 UTC, Vedran Miletić
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vedran Miletić 2011-09-29 08:18:06 UTC
Currently, on Fedora at least, if python package is installed and python-devel isn't, this results in:

---- Summary of optional NS-3 features:
NS-3 Click Integration        : not enabled (nsclick not enabled (see option --with-nsclick))
GtkConfigStore                : not enabled (library 'gtk+-2.0 >= 2.12' not found)
XmlIo                         : not enabled (library 'libxml-2.0 >= 2.7' not found)
Threading Primitives          : enabled
Real Time Simulator           : enabled
Emulated Net Device           : enabled
Network Simulation Cradle     : enabled
MPI Support                   : not enabled (option --enable-mpi not selected)
NS-3 OpenFlow Integration     : not enabled (Required boost libraries not found)
SQlite stats data output      : not enabled (library 'sqlite3' not found)
Tap Bridge                    : enabled

Python Bindings               : not enabled (The configuration failed
(complete log in /home/vedranm/bin/ns-3-allinone/ns-3-dev/build/config.log))

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)  : not enabled (GSL not found)
'configure' finished successfully (2.461s)

It would be cool if waf could print something like (library 'python' not found) or (Required python develoment libraries not found).

If it's hard to do this, please ignore this bug.
Comment 1 Vedran Miletić 2011-09-29 08:18:31 UTC
Created attachment 1249 [details]
config.log
Comment 2 Gustavo J. A. M. Carneiro 2011-09-29 10:00:17 UTC
Again, this is upstream WAF issue... ns-3 ships a copy of the WAF python tool just to fix a bug, otherwise it's just WAF.
Comment 3 Vedran Miletić 2011-10-01 06:56:04 UTC
Hi Gustavo,

Thomas Nagy responded to upstream report: http://code.google.com/p/waf/issues/detail?id=1048
Comment 4 Gustavo J. A. M. Carneiro 2012-02-20 07:17:57 UTC
changeset:   7716:8758b76b756c
tag:         tip
user:        Gustavo J. A. M. Carneiro  <gjc@inescporto.pt>
date:        Mon Feb 20 12:17:26 2012 +0000
summary:     Bug 1273 - Better error message on missing Python development files