LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2013, 04:21 PM   #1
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Rep: Reputation: Disabled
Unhappy problem with um-olsr


hi
I'm working on ns2.34 (ubuntu 11.04 gcc 4.1)
I tried to add um-olsr patch. everything seems to be succesful but when I tested the olsr_example.tcl, i have this problem:

invalid command name "Agent/OLSR"
while executing
"Agent/OLSR set use_mac_ true"
(file "olsr_example.tcl" line 44)


any help will be grateful
thkx in advance
 
Old 01-27-2013, 05:25 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Quote:
invalid command name "Agent/OLSR"
Looks like no OLSR was installed.

Required files ..
1) um-olsr-0.8.8.tgz, to : um-olsr-0.8.8/, rename to : olsr/
I.e. "ns-allinone-2.34/ns-2.34/olsr/"
2) um-olsr-2.34_v0.8.8.patch
http://www.linuxquestions.org/questi...-4175418287/#2
( patch -p0 < um-olsr-2.34_v0.8.8.patch ).


-

Last edited by knudfl; 01-27-2013 at 06:05 PM.
 
Old 01-28-2013, 03:55 AM   #3
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Original Poster
Rep: Reputation: Disabled
hi,
I already did the all steps and everything seems to be ok
but when I simulate the problem is still there
plz help
 
Old 01-28-2013, 05:47 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 3 : cd ns-allinone-2.34/ && patch -p0 < um-olsr-2.34_v0.8.8.patch
etc. etc. ( export CC=gcc41 CXX=g++41 && ./install ).
Code:
$ ./ns olsr_example.tcl 
num_nodes is set 5
INITIALIZE THE LIST xListHead
*** NOTE: no connection pattern specified.
*** NOTE: no scenario file specified.
Starting Simulation...                                                  
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_                  
highestAntennaZ_ = 1.5,  distCST_ = 550.0                               
SORTING LISTS ...DONE!                                                  
NS EXITING...
If you want a specified "connection pattern", "scenario file"
http://www.docstoc.com/docs/116289534/UM-OLSR-install
(olsr_example(2).tcl), Line 15 : set opt(cp) tcl/mobility/scene/cbr-3-test
Line 16 : set opt(sc) tcl/mobility/scene/scen-3-test
Other info : http://masimum.inf.um.es/fjrm/?page_id=116

Your "Agent/OLSR" issue : May be you are using an 'ns' from another install ?
If you added something to ~.bash_profile : Please delete. Not required.
And not possible, if you have more than one version of ns2.
The trick is to rename all 'ns' to e.g. ns234, ns-orig, ns-olsr, ns-umolsr,
etc. etc., and then copy all ns** to /usr/local/bin/ : A system PATH.
Or use as ./ns**

-
 
Old 01-28-2013, 10:50 AM   #5
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Original Poster
Rep: Reputation: Disabled
hi
you said "May be you are using an 'ns' from another install ?"
what do you mean, I have just re-installed the ns2.34, and the all thing about patching and export gcc,
besides i did'nt touch the ~.bash_profil
but still not working
any suggestion?
 
Old 01-28-2013, 11:10 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 5

Well, I know you have done some net simulation a year or two ago.
So you could actually have a binary 'ns' somewhere in your PATH,
if any ns2 was used then. ? Or an ns entry in ~.bash_profile.
But : It is difficult to say what went wrong,
when you have no errors at ns-2.34 build time.

Which OS are you using now ? ?

-
 
Old 01-28-2013, 12:05 PM   #7
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Original Poster
Rep: Reputation: Disabled
hi

I'm working on ubuntu 11.04 and I have changed the gcc to gcc41 as you recommanded on your posts
note that all other routing protocol works, the pb is just with olsr

Last edited by farfattou; 01-28-2013 at 12:11 PM.
 
Old 01-28-2013, 03:13 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 7
Quote:
all other routing protocol works, the problem is just with olsr
Do you mean that the "um-olsr ns-2.34" is patched with something else ?
Please specify.


Quote:
I have changed the gcc to gcc41
You can actually have as many versions of gcc/g++ as you want,
installed at the same time.
Hence " export CC=gcc41 CXX=g++41 && ./install ".

-

Last edited by knudfl; 01-28-2013 at 03:18 PM.
 
1 members found this post helpful.
Old 01-28-2013, 03:55 PM   #9
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Original Poster
Rep: Reputation: Disabled
I mean that AODV DSR,...can be run on simulation. It is just when I change to OLSR protocol that the problem appear
 
Old 01-28-2013, 05:40 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
#9 : OK, please try out the package um-olsr-ns-2.34-ubuntu10_i386.deb
https://docs.google.com/file/d/0B7S2...81LWxUUlE/edit
Providing : /usr/local/bin/ns-umolsr
/usr/local/lib/um-olsr/ns-allinone-2.34/bin/**
/usr/local/lib/um-olsr/ns-allinone-2.34/lib/**

Using, example : $ cd ns-allinone-2.34/ns-2.34/
$ ns-umolsr olsr_example2.tcl
→ → num_nodes is set 5
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
.. etc. etc. : Files olsr_example2.nam, olsr_example2.tr are created.
$ nam olsr_example2.nam : OK too.
-
Attached Files
File Type: txt olsr_example2.tcl.txt (4.9 KB, 197 views)
 
2 members found this post helpful.
Old 01-29-2013, 06:22 AM   #11
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Original Poster
Rep: Reputation: Disabled
Thumbs up

hi knudfl
it works. thank you
awsome

thkxxxxxxxxxxxxxxx
 
Old 03-30-2013, 05:57 AM   #12
khattab
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
Hi,
hope your fine !
i'm working with ubuntu 10.04 and ns-2.29
i'm integrat um-olsr without probleme but when i run olsr_example.tcl It gave me error :
--------
hicham@ubuntu:~/Desktop/ns-allinone-2.29/ns-2.29$ ns olsr_example.tcl
invalid command name "Agent/OLSR"
while executing
"Agent/OLSR set use_mac_true"
(file "olsr_example.tcl" line 44)
-----------
I tried $ ns-umolsr olsr_example.tcl and ns-olsr_v0.8.8 olsr_example but nothing invalid command
I was working with ns2.35 but i didn't compil so I switch to ns 2.29 and I replace the all paths to ns2.35 to ns2.29 paths !!
Any help please !
 
Old 03-30-2013, 06:25 AM   #13
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Original Poster
Rep: Reputation: Disabled
hi khattab
the problem is with your olsr patch. May be it seems that you patched it succesfully but when it returns such error it means that no olsr installed. As you can see in this post, I tried another patch but I'm afraid it can't work for ns2.29
I'll try to find out a soluion for you and keep you informed.
Meanwhile, I suggest that you post own request so you increase your chance to get your problem solved by the other forum's members
best regards
 
1 members found this post helpful.
Old 03-30-2013, 06:31 AM   #14
khattab
LQ Newbie
 
Registered: Mar 2013
Posts: 3

Rep: Reputation: Disabled
Hi farfattou
please Could you send me your gedit ~/.bashrc to compare with mine !?
thank you for relaying !
 
Old 03-30-2013, 10:43 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
# 12 .
Quote:
invalid command name "Agent/OLSR"
No OLSR was compiled into the 'ns' executable.


Post # 14 :
Quote:
~/.bashrc
Not relevant. It's never required to add anything to .bashrc .
Because the executable 'ns' is hard coded to know the location of it's libraries.
This will do : cd ns-allinone-2.29/ns-2.29/ && cp ns /usr/local/bin/

um-olsr http://sourceforge.net/projects/um-olsr/
Latest is 'um-olsr-1.0.tgz'.

If you have any problems, the easy way is to use the proof package
um-olsr-ns-2.34-ubuntu10_i386.deb : See post #10.

-
 
1 members found this post helpful.
  


Reply

Tags
ns2, olsr, um-olsr


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OLSR patch sukrutha Linux - Newbie 24 05-03-2016 06:51 AM
ns2 installation on ubuntu with olsr patch giving following error bhushan0710 Linux - Newbie 8 01-21-2013 05:09 AM
OLSR patch sukrutha Linux - Newbie 2 08-21-2011 08:51 AM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration