How to enable the optional NS-3 features with waf ?

624 views
Skip to first unread message

Mustafa Kamal

unread,
Dec 2, 2009, 6:41:19 AM12/2/09
to ns-3-users
Hello,

I've just installed ns-allinone-3.6 stable version. After doing the
following command
# ./build.py
# cd ns-3.6
# ./waf configure (but I got the below output from this command)
# ./waf

Now how i can able to enable this optional features. I've already
checked in Fedora 12 that I've glib, gtk, sudo, python as well as nsc
(in ns-allinone-3.6 directory).
I am using Fedora 12 in VMware.
Can anyone help me?

[root@localhost ns-3.6]# ./waf configure
Checking for program g++ : ok /usr/lib/ccache/g++
Checking for program cpp : ok /usr/bin/cpp
Checking for program ar : ok /usr/bin/ar
Checking for program ranlib : ok /usr/bin/ranlib
Checking for g++ : ok
Checking for program pkg-config : ok /usr/bin/pkg-config
Checking for regression reference traces : ok ../ns-3.6-ref-traces
(guessed)
Checking for -Wno-error=deprecated-declarations support :
yes
Checking for -Wl,--soname=foo support :
yes
Checking for header stdlib.h :
ok
Checking for header signal.h :
ok
Checking for header pthread.h :
ok
Checking for high precision time implementation : 128-bit
integer
Checking for header stdint.h :
ok
Checking for header inttypes.h :
ok
Checking for header sys/inttypes.h : not
found
Checking for library rt :
ok
Checking for header netpacket/packet.h :
ok
Checking for header linux/if_tun.h :
ok
Package gtk+-2.0 was not found in the pkg-config search
path.
Perhaps you should add the directory containing `gtk
+-2.0.pc'
to the PKG_CONFIG_PATH environment
variable
No package 'gtk+-2.0'
found
Checking for pkg-config flags for GTK_CONFIG_STORE : not
found
Checking for pkg-config flags for LIBXML2 :
ok
Checking for library sqlite3 : not
found
Checking for NSC location : not
found
Checking for program python : ok /usr/bin/
python
Checking for Python version >= 2.3 : ok
2.6.2
Checking for library python2.6 :
ok
Checking for program python2.6-config : ok /usr/bin/
python2.6-config
Checking for header Python.h :
ok
Checking for -fvisibility=hidden support :
yes
Checking for pybindgen location : not found
Checking for Python module pybindgen : not found
pybindgen missing => no python bindings
Checking for program sudo : ok /usr/bin/
sudo
Checking for program hg : ok /usr/bin/
hg
Checking for program valgrind : ok /usr/bin/
valgrind
Package gsl was not found in the pkg-config search path.
Perhaps you should add the directory containing `gsl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gsl' found
Checking for pkg-config flags for GSL : not found
---- Summary of optional NS-3 features:
Threading Primitives : enabled
Real Time Simulator : enabled
Emulated Net Device : enabled
Tap Bridge : enabled
GtkConfigStore : not enabled (library 'gtk+-2.0 >=
2.12' not found)
XmlIo : enabled
SQlite stats data output : not enabled (library 'sqlite3' not
found)
Network Simulation Cradle : not enabled (NSC not found (see option
--with-nsc))
Python Bindings : not enabled (PyBindGen missing)
Use sudo to set suid bit : not enabled (option --enable-sudo
not selected)
Build examples and samples : enabled
Static build : not enabled (option --enable-
static not selected)
GNU Scientific Library (GSL) : not enabled (GSL not found)
'configure' finished successfully (2.396s)

Faker Moatamri

unread,
Dec 2, 2009, 12:01:23 PM12/2/09
to ns-3-...@googlegroups.com
Mustafa Kamal wrote:
> Hello,
>
> I've just installed ns-allinone-3.6 stable version. After doing the
> following command
> # ./build.py
> # cd ns-3.6
> # ./waf configure (but I got the below output from this command)
> # ./waf
>
> Now how i can able to enable this optional features. I've already
> checked in Fedora 12 that I've glib, gtk, sudo, python as well as nsc
> (in ns-allinone-3.6 directory).
> I am using Fedora 12 in VMware.
> Can anyone help me?
>
>
You install what is missing and re-run ./waf configure and the feature
will be enabled.
Best regards
Faker Moatamri

Gustavo Carneiro

unread,
Dec 2, 2009, 12:24:35 PM12/2/09
to ns-3-...@googlegroups.com


2009/12/2 Faker Moatamri <faker.m...@sophia.inria.fr>

Additionally, in the case of NSC, pybindgen, and reference traces, you may find it convenient to pass --with-xxx=../xxx options to waf configure.
 
Best regards
Faker Moatamri

--

You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.





--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert

Gustavo Carneiro

unread,
Dec 8, 2009, 7:34:37 AM12/8/09
to ns-3-...@googlegroups.com


2009/12/2 Mustafa Kamal <joar...@gmail.com>

Hello,

I've just installed ns-allinone-3.6 stable version. After doing the
following command
# ./build.py
# cd ns-3.6
# ./waf configure (but I got the below output from this command)
# ./waf

Now how i can able to enable this optional features. I've already
checked in Fedora 12 that I've glib, gtk, sudo, python as well as nsc
(in ns-allinone-3.6 directory).
I am using Fedora 12 in VMware.
Can anyone help me?

Subscribe to bug http://www.nsnam.org/bugzilla/show_bug.cgi?id=763 and provide the needed info.

My best guess is that you have gtk but not gtk-devel package.  NS-3 needs -devel packages for everything, of course.

--

You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


Tom Henderson

unread,
Dec 8, 2009, 5:45:15 PM12/8/09
to ns-3-users


On Dec 8, 4:34 am, Gustavo Carneiro <gjcarne...@gmail.com> wrote:
> 2009/12/2 Mustafa Kamal <joard...@gmail.com>
>
> > Hello,
>
> > I've just installed ns-allinone-3.6 stable version. After doing the
> > following command
> > # ./build.py
> > # cd ns-3.6
> > # ./waf configure (but I got the below output from this command)
> > # ./waf
>
> > Now how i can able to enable this optional features. I've already
> > checked in Fedora 12 that I've glib, gtk, sudo, python as well as nsc
> > (in ns-allinone-3.6 directory).
> > I am using Fedora 12 in VMware.
> > Can anyone help me?
>
> Subscribe to bughttp://www.nsnam.org/bugzilla/show_bug.cgi?id=763and
> provide the needed info.
>
> My best guess is that you have gtk but not gtk-devel package.  NS-3 needs
> -devel packages for everything, of course.
>

I was unable to reproduce this. I think Gustavo is right-- you are
probably missing devel packages. This wiki page should show you what
to install:

http://www.nsnam.org/wiki/index.php/Installation#Fedora.2FRedHat

Kamal Joarder Mohammad Mustafa

unread,
Dec 9, 2009, 2:04:26 PM12/9/09
to ns-3-...@googlegroups.com
I've followed the weblink and first install the necessary library files in Fedora 12. Some files are already installed while the rest has given a fresh download and install.

I've download the both ns-3-dev and ns-allinone of version 3.6 in the repos and tarball dir respectively.
At this time, while running ./waf -d optimized configure both bundle show different results. Like although the ns-dev bundle can detect the pybindgen but the allineone bundle couldn't. Similarly while the ns-dev bundle can detect and enable the optional NSC feature while the allinone bundle couldn't.

I've attached the logs. Hope you will check that.

I am using Fedora 12 on VMware over Windows 7 (64bit).
VMware Server: 2.0.0
Fedora 12 with 1GB RAM and 16 GB HDD (Virtually)

And thanks to Gustavo and Tom Henderson for these essential information.

Regards,
Mustafa Kamal

ns3-allinone-installation-logs.txt
ns3-dev-installation-logs.txt
Reply all
Reply to author
Forward
0 new messages