User Tools

Site Tools


informatica:linux:ns3

This is an old revision of the document!


1. Descargar

wget -c --tries=0 http://www.nsnam.org/releases/ns-allinone-3.6.tar.bz2

2. Descomprimir

tar xvfj ns-allinone-3.6.tar.bz2

3. Instalar

./build.py

Dura casi 10'

4. (En construcción) Instalar paquetes adicionales:

aptitude install python-dev pkg-config valgrind

5. Cambiar de directorio:

cd ns-3.6

6. Ejecutar:

./waf -d optimized configure
Checking for program g++                 : ok /usr/bin/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 
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Checking for pkg-config flags for LIBXML2               : not found 
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.5.4 
Checking for library python2.5                          : ok 
Checking for program python2.5-config                   : ok /usr/bin/python2.5-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                                 : not found 
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                         : not enabled (library 'libxml-2.0 >= 2.7' not found)
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.091s)

7. Ejecutar:

./waf -d debug configurecd
Checking for program g++                 : ok /usr/bin/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 
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libxml-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Checking for pkg-config flags for LIBXML2               : not found 
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.5.4 
Checking for library python2.5                          : ok 
Checking for program python2.5-config                   : ok /usr/bin/python2.5-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                                 : not found 
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                         : not enabled (library 'libxml-2.0 >= 2.7' not found)
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.176s)

8. Ejecutar:

./waf


                    
                                    
informatica/linux/ns3.1263209204.txt.gz · Last modified: 2015/04/13 20:19 (external edit)