Monday, August 8, 2011

How I installed OLSR-ETX / ML / MD module for NS-2.34

This was done after I successfully installed ns2.34

$ cd ns-allinone-2.34 /ns-2.34/

$ patch -p1 < olsr.patch

$ ./configure

$ make distclean

$ ./configure

$ make


  1. download it and install it as it says in the blog but I run I get an error that can be use ns-2.34

    1. check the path for the command

      $ patch > [path/]olsr.patch

      say, if you extracted the olsr files (specifically the file olsr.patch) here home/sahm/olsr-0.2.3-ns-2.34/ then issue the command:

      $ patch < home/sahm/olsr-0.2.3-ns-2.34/olsr.patch

      be sure that upon issuing the command you are at this directory: ns-allinone-2.34 /ns-2.34/

      Bye and good luck

  2. I got some error like this

    "config.status: autoconf.h is unchanged"
    kindly solve this problem.....

  3. I forgot to mention in the blog, I installed my NS2 in Ubuntu 10. What OS are you using?

  4. I patch olsr.patch with command like this : patch -p1 < olsr.patch
    I get output :

    --- ns-2.34/common/packet.h 2010-02-25 23:06:47.000000000 -0300
    File to patch:

    What should I write in "File to patch"?
    I am using ubuntu 12.04

  5. Thanks a lot for this post. It was of great help..

  6. I am working in installation of olsr patch on ubuntu 10.04 and the patch is downloaded from and @knudfl it is given in the following link that there are patches for different versions of ns-2. I have followed steps from the link but while patching i am getting following errors please help me out with this. thanking in advance

    patching file
    Hunk #1 succeeded at 280 (offset 4 lines).
    patching file common/packet.h
    Hunk #1 FAILED at 182.
    Hunk #2 succeeded at 395 with fuzz 2 (offset 12 lines).
    1 out of 2 hunks FAILED -- saving rejects to file common/packet.h.rej
    patching file queue/
    patching file tcl/lib/ns-agent.tcl
    patching file tcl/lib/ns-default.tcl
    patching file tcl/lib/ns-lib.tcl
    patching file tcl/lib/ns-packet.tcl
    patching file trace/
    Hunk #2 succeeded at 1065 (offset 2 lines).
    Hunk #3 succeeded at 1414 (offset 7 lines).
    patching file trace/cmu-trace.h
    Hunk #1 FAILED at 160.
    1 out of 1 hunk FAILED -- saving rejects to file trace/cmu-trace.h.rej