Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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**
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?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
#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.
-
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 !
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.