How to install NS3? or NS2?

902 views
Skip to first unread message

geekyogi

unread,
Jun 25, 2009, 1:11:13 PM6/25/09
to ns-3-users
I am newbie to linux, Ubuntu.. I wish to do a project in networking
which requires Network Simulator. I tried searching on how to install
NS.. but still couldnt figure out.. Could anyone give me the spoon-fed
procedure.. or a link.

And also-
Is NS3 better than NS2?
Which linux distro is the best for NS.?
Is NS GUI.? user friendly? any book suggestion to learn it?

Hope i am not making silly discussions in this group.

Thanks in advance.

Τσιλιγγίρης Γεώργιος

unread,
Jun 25, 2009, 1:16:51 PM6/25/09
to ns-3-...@googlegroups.com
There is no gui in ns2 or ns3. You have to write code for each
simulation. If you want a simulator with GUI try Qualnet with a
university licence

2009/6/25, geekyogi <yoges...@gmail.com>:

Ashwini Patankar

unread,
Jun 26, 2009, 4:14:50 PM6/26/09
to ns-3-users
ns2 is better than ns3 coz ns3 is still under development phase and
some libraries are not yet included (may by now they include those
just cross check once). As far as ns2 installations are considered go
to http://wirelesscafe.wordpress.com/2008/12/22/how-to-install-ns-2-network-simulator-2/
here you can find step by step procedure. and also if you are going to
install ns2 then download ns2.34

geekyogi

unread,
Jun 26, 2009, 10:09:51 PM6/26/09
to ns-3-users
Thanx.. I would try the install today..

On Jun 27, 1:14 am, Ashwini Patankar <ashwinispatan...@gmail.com>
wrote:
> ns2 is better than ns3 coz ns3 is still under development phase and
> some libraries are not yet included (may by now they include those
> just cross check once). As far as ns2 installations are considered go
> tohttp://wirelesscafe.wordpress.com/2008/12/22/how-to-install-ns-2-netw...

Raja Baz

unread,
Jun 28, 2009, 11:21:46 AM6/28/09
to ns-3-...@googlegroups.com
ns3 may be still under development but as for ns2, otcl? really? It doesn't even build anymore(with newer versions of tcl/tk)

geekyogi

unread,
Jun 28, 2009, 12:48:04 PM6/28/09
to ns-3-users
Seems.. python is better than TCL.. But.. libraries for NS3 are still
under development... am i right? Am still confused.. should i go for
NS2 or NS3?

On Jun 28, 8:21 pm, Raja Baz <entrop...@gmail.com> wrote:
> ns3 may be still under development but as for ns2, otcl? really? It doesn't
> even build anymore(with newer versions of tcl/tk)
>
> On Fri, Jun 26, 2009 at 11:14 PM, Ashwini Patankar <
>
> ashwinispatan...@gmail.com> wrote:
>
> > ns2 is better than ns3 coz ns3 is still under development phase and
> > some libraries are not yet included (may by now they include those
> > just cross check once). As far as ns2 installations are considered go
> > to
> >http://wirelesscafe.wordpress.com/2008/12/22/how-to-install-ns-2-netw...

Mathieu Lacage

unread,
Jun 29, 2009, 3:25:10 AM6/29/09
to ns-3-...@googlegroups.com
hi,

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

Muhammad Ikram

unread,
Jun 29, 2009, 3:28:18 AM6/29/09
to ns-3-...@googlegroups.com
Hi,

I want to install NS3 on Mac OS X and need yours help how to install it?

Thanks


Mathieu Lacage

unread,
Jun 29, 2009, 3:41:52 AM6/29/09
to ns-3-...@googlegroups.com
Did you look at http://www.nsnam.org/tutorials.html ?

What specific problem do you have ?

Mathieu

cra...@ee.washington.edu

unread,
Jun 29, 2009, 2:36:33 PM6/29/09
to ns-3-...@googlegroups.com
> I want to install NS3 on Mac OS X and need yours help how to install it?

See
http://www.nsnam.org/wiki/index.php/HOWTO_get_ns-3_running_on_Mac_OS_X_(10.5
.2_Intel)


Muhammad Ikram

unread,
Jun 29, 2009, 4:05:55 PM6/29/09
to ns-3-...@googlegroups.com
Hi Mathieu,

I have the following problem in installing ns3 on Mac OS X (10.4.11): 

san-depps-computer:~/repos/ns-3-allinone sandepp$ ./download.py 
Traceback (most recent call last):
  File "./download.py", line 9, in ?
    from util import run_command, fatal, CommandError
  File "/Users/sandepp/repos/ns-3-allinone/ns-3-allinone/util.py", line 2, in ?
    import subprocess
ImportError: No module named subprocess


san-depps-computer:~/repos/ns-3-allinone/ns-3-allinone sandepp$ ./download.py 
Traceback (most recent call last):
  File "./download.py", line 9, in ?
    from util import run_command, fatal, CommandError
  File "/Users/sandepp/repos/ns-3-allinone/ns-3-allinone/util.py", line 2, in ?
    import subprocess
ImportError: No module named subprocess
san-depps-computer:~/repos/ns-3-allinone/ns-3-allinone sandepp$ cd ..
san-depps-computer:~/repos/ns-3-allinone sandepp$ ./build.py   File "./build.py", line 96
    finally:
          ^
SyntaxError: invalid syntax


I have installed Python 2.5 and Mercurial 1.1 for Mac OS X 10.4. 

raoudha baklouti

unread,
Jun 29, 2009, 5:17:06 PM6/29/09
to ns-3-...@googlegroups.com
Hello Raja,
I want to install NS 2 in ubuntu 9.4 througt the link: http://wirelesscafe.wordpress.com/2008/12/22/how-to-install-ns-2-network-simulator-2/.
but I have an error in  Step 5:#./install
/* This will run the install Script, wait for the output */

r@r-laptop:~/Bureau$ ./install
bash: ./install: Aucun fichier ou dossier de ce type

Mathieu Lacage

unread,
Jun 30, 2009, 2:02:55 AM6/30/09
to ns-3-...@googlegroups.com
python --version ?

Mathieu Lacage

unread,
Jun 30, 2009, 2:03:54 AM6/30/09
to ns-3-...@googlegroups.com
This mailing list is for questions about ns-3, not ns2. See
http://mailman.isi.edu/mailman/listinfo/ns-users

Mathieu

Muhammad Ikram

unread,
Jun 30, 2009, 5:35:02 AM6/30/09
to ns-3-...@googlegroups.com
Hi Mathieu,


Thanks, I solved the problem. I re-installed Python 2.5 and Mercurial 1.01 for Mac OS X 10.4. Thanks for valuables help and sharing the links. I am working on simulating Authentication, Authorization, and Accountability protocol for NEMO protocol in wireless environment. At first I want to simulate the simple Mobile router for getting statistics related to binding updates and handover delays, etc. I don't know how to start and where to start? I am decent in C++ programming and feeling comfortable with NS3 code. Could you help in starting simulating my scenario?

With kind regards

Ashwini Patankar

unread,
Jun 30, 2009, 3:04:49 PM6/30/09
to ns-3-users
hi all,

seems that i had mistaken by not using the correct words. By the way,
you should go with ns3 as far as its installation procedure is
considered I will soon post one on wirelesscafe blog. The advantages
of sn3 are many but most bigger one is it is python based which simply
means more power and easiness. NS2 is still there and recently they
released ns2.34 which is simply for error free installation on fedora
10 + and also with some extra upgraditation. but still if you will go
with ns3 then you will add some more to ns3 and which is needed :) and
you will definetly enjoy python .

On Jun 25, 5:11 pm, geekyogi <yogesh....@gmail.com> wrote:

geekyogi

unread,
Jul 1, 2009, 11:21:41 PM7/1/09
to ns-3-users
Great..Installed NS3 successfully.. and going ahead with NS3... Thanx
all...


On Jul 1, 12:04 am, Ashwini Patankar <ashwinispatan...@gmail.com>
wrote:

Wilson Thong

unread,
Jul 3, 2009, 3:39:53 PM7/3/09
to ns-3-users
I am also new to ns and I am now using ns-3. Reasons follow

Reason 1. I don't want to study ns-2 now and re-study ns-3 few years
later.

Please be warned, ns-2 and ns-3 are two completely different animals.
You may end up learning nothing about ns-3 after you become accustom
with ns-2. If you like new thing, study ns-3 now and forget ns-2.

ns-2 and ns-3 are equally difficult to me at first! No matter how ns-2
claims easy to use is the TCL, and no matter how ns-3 provides many
helper classes to hind the ns-3 internal logic, I have to have go
thought at least one complete manual before feeling I am right at
using a tool (no matter it is ns-2 or ns-3). Using a tool is not hard,
the hardest part is to use it as what the developers have planned. So
reading the developers' manual is very important in my opinion.

As I don't want to spend another time reading ns-3 manual few years
later, I read nothing on ns-2 stuff and start using ns-3 right away
now.

And, if stable is the main concern, why not using ns-1?? I want new
thing now, don't you?

Reason 2. I don't want to learn two languages, oTcl and C++. Knowing C+
+ is just good and is enough (is painful enough!)

Ns-2 internal logic is written by C/C++ (as far as I can remember.
Correct me please if this is miss-leading), but ns-2 users use oTcl to
write simulation codes. I personally don't like this two-layer
structure. I have to understand two things before I can fully
understand what ns-2 is doing for me.

Ns-3 is completely C++ and completely object oriented. This just
matches my programming habit and preference exactly . Whenever I have
questions about "why this function is being called" or "why and where
this variable is changed?", I can use just one C++ mindset to read the
ns-3 source codes (with the help of gdb) and find the answers.

And, two languages do not only mean to me two syntax. It means two
different set of problems I may have to due with. May it be having a
compile error because some #include should be in .h file and some
should be in .cc file; may it be template function and its whole
implementation have to be in .h or those functions may compile
successfully here but failed there; may it be automatic involving
child class method unexpectedly as the keyword "virtual" exists with
its mother method (hiding in an open source library!); may it be ...
these all were extremely painful to me when I was going from java to C+
+. And I don't want to be in this bad mood again when I have only two
months time to finish my simulations.

Reason 3. ns-3 source code is version controlled

Mercurial is a tool to mange version changes. With Mercurial, I can
start trying, say, three different ways to source-route a packet, and
find out version 2 is bad after some run time evaluation, and merge
version 1 to version 3 (skipping version 2) to come up with my final
solution. And then two days later go back to version 2 (i.e., now
version 3 becomes the bad one) and do amendment and merge it with the
most updated ns-3 source code available from http://code.nsnam.org/ns-3-dev/.
As ns-3 source is managed using Mercurial on its public server, inter-
work with different versions on my local and the public ns-3 codes is
very easy.

Nevertheless, I started working on my simulation using ns-3 without
any knowledge about Mercurial. As it is just a tool to manage files,
it is nothing different as if I were programming ns-3 without even
installing Mercurial.

But once I read the Mercurial manual, I found this is really a lovely
tool not only for doing programming projects, but for latex writing as
well.~~!

So

I highly suggest using ns-3 if you are completely new to both ns-2/
ns-3. But if you are already fine with ns-2, I guess there may not
have enough reasons to switch it now.

Thanks,
Wilson

On Jul 1, 3:04 am, Ashwini Patankar <ashwinispatan...@gmail.com>
wrote:

geekyogi

unread,
Jul 8, 2009, 10:13:31 AM7/8/09
to ns-3-users
I have a clear mind now.. Thanx @Wilson thong... stable release of NS
3.5 is also out! thanx all... This group is much more active than NS2
group.. keep posting...
> most updated ns-3 source code available fromhttp://code.nsnam.org/ns-3-dev/.

Arsalan Ahmad

unread,
Dec 23, 2017, 12:34:58 AM12/23/17
to ns-3-users

Can we have multiple versions of NS-3 at the same time on single machine ?

Thanks in advance.

Tommaso Pecorella

unread,
Dec 23, 2017, 7:11:07 PM12/23/17
to ns-3-users
hi,

yes, just use different folders.

T.

Naseer Alumrany

unread,
Apr 13, 2019, 5:56:54 PM4/13/19
to ns-3-users
hi Tommaso Pecorella

i tried install ns3.19 and installed in my computer ns3.27 but when do build to ns3.19 this error appear


Traceback (most recent call last):
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 153, in run_commands
    ctx=run_command(cmd_name)
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Scripting.py", line 146, in run_command
    ctx.execute()
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Configure.py", line 128, in execute
    super(ConfigurationContext,self).execute()
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Context.py", line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/wscript", line 369, in configure
    conf.recurse('bindings/python')
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/.waf-1.7.13-5a064c2686fe54de4e11018d22148cfc/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/home/naseer/bb/ns-allinone-3.19/ns-3.19/bindings/python/wscript", line 279, in configure
    gccxml_version = m.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Traceback (most recent call last):
  File "./build.py", line 170, in <module>
    sys.exit(main(sys.argv))
  File "./build.py", line 161, in main
    build_ns3(config, build_examples, build_tests, args, build_options)
  File "./build.py", line 80, in build_ns3
    run_command(cmd) # waf configure ...
  File "/home/naseer/bb/ns-allinone-3.19/util.py", line 24, in run_command
    raise CommandError("Command %r exited with code %i" % (argv, retval))
util.CommandError: Command ['/usr/bin/python', 'waf', 'configure', '--with-pybindgen', u'../pybindgen-0.16.0.834'] exited with code 2

Aman Khullar

unread,
Apr 14, 2019, 2:09:52 AM4/14/19
to ns-3-users
Greetings,

I am also trying to install NS3 in my MacOS Mojave - 10.14.3. I have tried various approaches to install NS-3 however have not been able to successfully install the same.


Firstly, I tried installation with Bake after ensuring the command line tools availability of Xcode (xcode-select version 2354). However the 'bake.py show' command outputs the following results :  

-- 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


Even though I installed pygraphviz using conda and the output of : 'pip list | grep pygraphviz' is : 
pygraphviz                         1.3

output for checking libgoocanvas2 is (I wasn't able to install using macports and hence used brew. I have also endured their correct working on the same machine) : 

$ 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

neha sharma

unread,
Apr 16, 2019, 3:14:54 PM4/16/19
to ns-3-...@googlegroups.com
Hi,
Refer this pdf for installation of ns3.
https://github.com/nehash-1909/PointToPoint_Topology/blob/master/ns3.pdf



Regards
Neha Sharma
 
MS
 
 
IIT Indore
Allahabad
e: ms1804...@iiti.ac.in
 
people.iiti.ac.in/~ms1804101001/LinkedIn icon   Google Plus icon   
 





--
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.

Daisy Zhang

unread,
Jul 29, 2019, 6:43:22 AM7/29/19
to ns-3-users
Hi, 

I got the same problem with you, and it hasn't be solved now. keep waiting for help. sad.....
Reply all
Reply to author
Forward
0 new messages