LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   olsr patchfor ns-2.35 ubuntu13.10 (https://www.linuxquestions.org/questions/linux-newbie-8/olsr-patchfor-ns-2-35-ubuntu13-10-a-4175496443/)

walidmess 02-27-2014 11:48 AM

olsr patchfor ns-2.35 ubuntu13.10
 
hi .
i have installed ns-2.35 . and installation has been successful( because i tried some exemples).
then i have downloaded olsr patch from http://sourceforge.net/projects/um-olsr/
the name of file is um-olsr-1.0.tgz

I have copied "um-olsr-1.0.tgz" in to "/home/ali/ns-allinone-2.35/ns-2.35" and then I did the following steps

1.$ cd /home/ali/ns-allinone-2.35/ns-2.35
2.$ tar zxvf um-olsr-1.0.tgz
3.$ ln -s ./um-olsr ./olsr
but when did the 4th :
4.$ patch -p1 < olsr/um-olsr_ns-2.35_v1.0.patch
i have this:
bash: olsr/um-olsr_ns-2.35_v0.8.8.patch: Aucun fichier ou dossier de ce type.

what should i do exactly ? did i download the correct patch version?

l.e: the other instructions it works correctly:
./configure
$ make distclean
$ ./configure
$ make

please help me..

knudfl 02-27-2014 12:05 PM

Welcome to LQ.

Maybe check your location one extra time : $ pwd

Anyway, it works OK here :
[knudfl@localhost ns-2.35]$ patch -p1 < olsr/um-olsr_ns-2.35_v1.0.patch

-

walidmess 02-27-2014 12:23 PM

thank you knudfl for your reply.
i did exactly what you said to me.
but i have the same error.
and when i test a example this what i had: invalid command name "Agent/OLSR"
while executing
"Agent/OLSR set use_mac_ true"
(file "olsr_example2.tcl" line 44).
thank you

knudfl 02-27-2014 12:56 PM

# 3 .
Quote:

... but I have the same error.
I guess your build will fail with that error.
*** The Ubuntu patch command is unstable / unreliable (with ns2 patches).

Quote:

invalid command name "Agent/OLSR"
That's a failed build. Or you are using a wrong executable 'ns'.

If you have the recommended 32bits (i686) OS,
you can install the um-olsr package, um-olsr-ns-2.34-ubuntu10_i386.deb
https://drive.google.com/file/d/0B7S...it?usp=sharing
... which provides /usr/local/bin/ns-umolsr
... and then run the examples with : $ ns-umolsr example.tcl

All um-olsr examples, umolsr-examples0613.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

UM-OLSR info * http://www.linuxquestions.org/questions/tags/um-olsr/
* http://www.linuxquestions.org/questions/tags/olsr/

-


All times are GMT -5. The time now is 10:13 PM.