On Fri, 2009-06-26 at 13:14 -0700, Ashwini Patankar wrote:
> ns2 is better than ns3 coz ns3 is still under development phase and
I personally think that being "under development" is a positive quality.
i.e., I would rather use "actively maintained" software rather than
"unmaintained software".
> some libraries are not yet included (may by now they include those
> just cross check once). As far as ns2 installations are considered go
What kind of not-included libraries are you talking about ? I would be
happy to know what we can do to make it easier to setup/install ns-3.
Mathieu
Can we have multiple versions of NS-3 at the same time on single machine ?
Thanks in advance.
-- System Dependencies --
> g++ - OK
> gi-cairo - OK
> libgoocanvas2 - Missing
>> GooCanvas2 support missing from system.
>> Try: "sudo port install libgoocanvas2", if you have sudo rights.
> pygobject - OK
> pygraphviz - Missing
>> The pygraphviz is not installed, try to install it.
>> Try: "sudo port install pygraphviz", if you have sudo rights.
> python-dev - OK
> qt - OK
> setuptools - OK
$ brew list | grep canvas
goocanvas
Secondly,
I then tried manual installation using mercurial and was able to install ns3 by changing the command ./download.py -n ns-3-dev to python download.py (I wasn't able to execute the former). After the installation I built ns-3 by replacing ./build.py with python2 build.py.
Eventually, I did see the magic words and got the output :
Waf: Leaving directory `/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (8m4.338s)
Modules built:
antenna aodv applications
bridge buildings config-store
core csma csma-layout
dsdv dsr energy
fd-net-device flow-monitor internet
internet-apps lr-wpan lte
mesh mobility mpi
netanim (no Python) network nix-vector-routing
olsr point-to-point point-to-point-layout
propagation sixlowpan spectrum
stats test (no Python) topology-read
traffic-control uan virtual-net-device
wave wifi wimax
Modules not built (see ns-3 tutorial for explanation):
brite click openflow
tap-bridge visualizer
Leaving directory `ns-3-dev'
However I am not being able to configure with Waf. For the configuration I attempted :
$ CXXFLAGS="-03" ./waf --python=/usr/bin/python configure.
Output :
---- Summary of optional NS-3 features:
Build profile : debug
Build directory :
BRITE Integration : not enabled (BRITE not enabled (see option --with-brite))
DES Metrics event collection : not enabled (defaults to disabled)
Examples : not enabled (defaults to disabled)
File descriptor NetDevice : not enabled (needs threading support which is not available)
GNU Scientific Library (GSL) : not enabled (GSL not found)
Gcrypt library : not enabled (libgcrypt not found: you can use libgcrypt-config to find its location.)
GtkConfigStore : not enabled (library 'gtk+-3.0 >= 3.0' not found)
MPI Support : not enabled (option --enable-mpi not selected)
NS-3 Click Integration : not enabled (nsclick not enabled (see option --with-nsclick))
NS-3 OpenFlow Integration : not enabled (Required boost libraries not found)
Network Simulation Cradle : not enabled (NSC not found (see option --with-nsc))
PyViz visualizer : not enabled (Python Bindings are needed but not enabled)
Python Bindings : not enabled (Python library or headers missing)
Real Time Simulator : not enabled (librt is not available)
SQlite stats data output : enabled
Tap Bridge : not enabled (needs threading support which is not available)
Tests : not enabled (defaults to disabled)
Threading Primitives : not enabled (<pthread.h> include not detected)
Use sudo to set suid bit : not enabled (option --enable-sudo not selected)
XmlIo : enabled
'configure' finished successfully (1.723s)
$ ./waf --python=/usr/bin/python -d optimized configure
Output :
---- Summary of optional NS-3 features:
Build profile : optimized
Build directory :
BRITE Integration : not enabled (BRITE not enabled (see option --with-brite))
DES Metrics event collection : not enabled (defaults to disabled)
Emulation FdNetDevice : not enabled (needs netpacket/packet.h)
Examples : not enabled (defaults to disabled)
File descriptor NetDevice : enabled
GNU Scientific Library (GSL) : not enabled (GSL not found)
Gcrypt library : not enabled (libgcrypt not found: you can use libgcrypt-config to find its location.)
GtkConfigStore : not enabled (library 'gtk+-3.0 >= 3.0' not found)
MPI Support : not enabled (option --enable-mpi not selected)
NS-3 Click Integration : not enabled (nsclick not enabled (see option --with-nsclick))
NS-3 OpenFlow Integration : not enabled (Required boost libraries not found)
Network Simulation Cradle : not enabled (NSC not found (see option --with-nsc))
PlanetLab FdNetDevice : not enabled (PlanetLab operating system not detected (see option --force-planetlab))
PyViz visualizer : not enabled (Missing python modules: gi, gi.repository.GObject, cairo, pygraphviz, gi.repository.Gtk, gi.repository.Gdk, gi.repository.Pango, gi.repository.GooCanvas)
Python API Scanning Support : not enabled (Missing 'pygccxml' Python module)
Python Bindings : enabled
Real Time Simulator : not enabled (librt is not available)
SQlite stats data output : enabled
Tap Bridge : not enabled (<linux/if_tun.h> include not detected)
Tap FdNetDevice : not enabled (needs linux/if_tun.h)
Tests : not enabled (defaults to disabled)
Threading Primitives : enabled
Use sudo to set suid bit : not enabled (option --enable-sudo not selected)
XmlIo : enabled
'configure' finished successfully (6.650s)
$ ./waf --python=/usr/bin/python
Output :
Waf: Entering directory `/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/build'
Traceback (most recent call last):
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Scripting.py", line 118, in waf_entry_point
run_commands()
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Scripting.py", line 178, in run_commands
ctx=run_command(cmd_name)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Scripting.py", line 169, in run_command
ctx.execute()
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Scripting.py", line 366, in execute
return execute_method(self)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Build.py", line 93, in execute
self.execute_build()
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Build.py", line 96, in execute_build
self.recurse([self.run_dir])
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Context.py", line 126, in recurse
user_function(self)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/wscript", line 885, in build
bld.recurse('src')
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Context.py", line 126, in recurse
user_function(self)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/src/wscript", line 317, in build
bld.recurse(list(all_modules))
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Context.py", line 126, in recurse
user_function(self)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/src/config-store/wscript", line 91, in build
module.includes = xcrun_output + '/usr/include/libxml2'
TypeError: can't concat bytes to str
When I ran $ ./test.py I got the following output :
Waf: Entering directory `/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/build'
Traceback (most recent call last):
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Scripting.py", line 118, in waf_entry_point
run_commands()
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Scripting.py", line 178, in run_commands
ctx=run_command(cmd_name)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Scripting.py", line 169, in run_command
ctx.execute()
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Scripting.py", line 366, in execute
return execute_method(self)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Build.py", line 93, in execute
self.execute_build()
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Build.py", line 96, in execute_build
self.recurse([self.run_dir])
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Context.py", line 126, in recurse
user_function(self)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/wscript", line 885, in build
bld.recurse('src')
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Context.py", line 126, in recurse
user_function(self)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/src/wscript", line 317, in build
bld.recurse(list(all_modules))
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/.waf3-2.0.9-897e824215d3dab2b64982d8af27db90/waflib/Context.py", line 126, in recurse
user_function(self)
File "/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/src/config-store/wscript", line 91, in build
module.includes = xcrun_output + '/usr/include/libxml2'
TypeError: can't concat bytes to str
Waf died. Not running tests
However when I ran $ python2 test.py :
(previous compiler messages)
[1958/1958] Creating pcfile: src/wimax/libns3-dev-wimax-optimized.pc
Waf: Leaving directory `/Users/amankhullar/Desktop/aman/ns-3-allinone/ns-3-dev/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (15m29.860s)
Modules built:
antenna aodv applications
bridge buildings config-store
core csma csma-layout
dsdv dsr energy
fd-net-device flow-monitor internet
internet-apps lr-wpan lte
mesh mobility mpi
netanim (no Python) network nix-vector-routing
olsr point-to-point point-to-point-layout
propagation sixlowpan spectrum
stats test (no Python) topology-read
traffic-control uan virtual-net-device
wave wifi wimax
Modules not built (see ns-3 tutorial for explanation):
brite click openflow
tap-bridge visualizer
0 of 0 tests passed (0 passed, 0 skipped, 0 failed, 0 crashed, 0 valgrind errors)
*** Note: ns-3 tests are currently disabled. Enable them by adding
*** "--enable-tests" to ./waf configure or modifying your .ns3rc file.
*** Note: ns-3 examples are currently disabled. Enable them by adding
*** "--enable-examples" to ./waf configure or modifying your .ns3rc file.
I am now unsure about how to proceed and what I could possibly do in order to install ns3.
I am now unsure about how to proceed and what I could possibly do in order to install ns3. I would love if anyone could help me out since I need to implement a protocol for my project submission. I would also be able to implement it on ns2 but my attempt to install ns2 using an available script was also futile even though I have XQuartz.
Thank You
Regards
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.