- I downloaded the olsr-0.2.3-ns-2.34.tar.gz from http://www.inf.ufrgs.br/~wlccordeiro/resources/olsr/
- I extracted the olsr.patch file and placed it at the ns-allinone-2.34/ns-2.34/ directory
- then I executed the following command
$ cd ns-allinone-2.34 /ns-2.34/
$ patch -p1 < olsr.patch
$ ./configure
$ make distclean
$ ./configure
$ make
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
ReplyDeletecheck the path for the command
Delete$ 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
I got some error like this
ReplyDelete"config.status: autoconf.h is unchanged"
kindly solve this problem.....
I forgot to mention in the blog, I installed my NS2 in Ubuntu 10. What OS are you using?
ReplyDeleteI patch olsr.patch with command like this : patch -p1 < olsr.patch
ReplyDeleteI 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
Thanks a lot for this post. It was of great help..
ReplyDeleteI am working in installation of olsr patch on ubuntu 10.04 and the patch is downloaded from http://sourceforge.net/projects/um-olsr/. 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 http://masimum.inf.um.es/fjrm/development/um-olsr/. but while patching i am getting following errors please help me out with this. thanking in advance
ReplyDeletepatching file Makefile.in
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/priqueue.cc
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/cmu-trace.cc
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