LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-27-2014, 02:32 PM   #1
phihung01
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
Angry demo olsr


[SIZE="<font><font>2</font></font>"][/SIZE]
I am not able to get exactly the OLSR
I am using ubuntu 10.04 LTS in 32 bit architecture. I have installed ns-2.34. But after patching OLSR it shows error while running OLSR tcl file.

My ns-2.34 installed in here.
/home/anupamj/ns-allinone-2.34/ns-2.34

I have added PATH configuration in .bashrc file

//-----------------------------------------------------------------------------------------
export PATH=$PATH:/home/hung/ns-allinone-2.34/bin:/home/hung/ns-allinone-2.34/tcl8.5.10/unix:/home/hung/ns-allinone-2.34/tk8.5.10/unix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/hung/ns-allinone-2.34/otcl-1.14:/home/hung/ns-allinone-2.34/lib
export TCL_LIBRARY=$TCL_LIBRARY:/home/hung/ns-allinone-2.34/tcl8.5.10/library
//-----------------------------------------------------------------------------------------

hung@ubuntu:~/ns-allinone-2.35/ns-2.35$ which ns
/home/hung/ns-allinone-2.35/bin/ns

I have downloaded OLSR patch from http://sourceforge.net/projects/um-olsr/. The downloaded file name is "um-olsr-1.0.tgz"

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

$ cd /home/hung/ns-allinone-2.34/ns-2.34
$ tar zxvf um-olsr-1.0.tgz
$ ln -s ./um-olsr ./olsr
$ patch -p1 < olsr/um-olsr_ns-2.34_v1.0.patch

After that I run the olsr tcl file it shows the following error.

“Agent/OLSR set use_mac_ true”
(file “olsr_example.tcl” line 38)

So let me know that, is the above steps are okey? What I have to do exactly. Please help me out.
 
Old 04-27-2014, 03:39 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
My ns-2.34 installed ...
/home/anupamj/ns-allinone-2.34/ns-2.34
.
.
hung@ubuntu:~/ns-allinone-2.35/ns-2.35$ which ns
/home/hung/ns-allinone-2.35/bin/ns
Looks like you are using the wrong 'ns' for $ ns olsr_example.tcl .

Quote:
I have added PATH configuration in .bashrc file
Not required. Better delete.
The *PATH text was used 15 years ago, when using the University Computeter,
and no write access to /usr/local/ was permitted.
This will work : $ cd ns-allinone-2.35/ns-2.35/ && sudo make install
* And for ns-2.34 + olsr : $ cd ns-allinone-2.34/ns-2.34/
$ cp ns ns-olsr
$ sudo cp ns-olsr /usr/local/bin/
.. Then you can do : $ ns-olsr mezyana-30.tcl (Is a nice Xgraph example)
.. from the examples umolsr-examples-04.2014.tar.gz →
https://drive.google.com/file/d/0B7S...it?usp=sharing

The file olsr_example.tcl is a development example. Add "traffic" and "movement".


Quote:
$ cd /home/hung/ns-allinone-2.34/ns-2.34
$ tar zxvf um-olsr-1.0.tgz
$ ln -s ./um-olsr ./olsr
$ patch -p1 < olsr/um-olsr_ns-2.34_v1.0.patch
Looks OK. Suggested is : Go to the top directory ns-allinone-2.34,
and do : $ export CC=gcc-4.1 CXX=g++-4.1 && ./install
( After you have done $ sudo apt-get install g++-4.1 ).

OLSR info http://www.linuxquestions.org/questions/tags/olsr/

-

Last edited by knudfl; 04-27-2014 at 03:41 PM.
 
Old 04-28-2014, 03:47 AM   #3
phihung01
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi. I did try but have not been. reported error: could not read file "olsr_example.tcl": no Such file or directory.
 
Old 04-28-2014, 03:59 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3 .
Quote:
I did try but have not been
Please rephrase. What do you mean ? Did try what ?

About "no such file or directory" :
1) Post #1 shows that you at least once found the file `olsr_example.tcl´.
2) Read post #2 : You cannot use olsr_example.tcl without editing.

** You are supposed to use the tested examples in umolsr-examples-04.2014.tar.gz .

-
 
Old 04-28-2014, 08:23 AM   #5
phihung01
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi. Thanks I did get through it and it is perfect
 
  


Reply

Tags
ns2, olsr



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
Amiga demo scene around 1990 - looking for one particular demo sycamorex General 5 07-27-2016 07:20 PM
OLSR patch sukrutha Linux - Newbie 24 05-03-2016 05:51 AM
OLSR beky man Linux - Newbie 1 11-02-2013 04:35 AM
LXer: The Demo Is Dead, Long Live The Demo LXer Syndicated Linux News 0 08-08-2013 05:20 PM
OLSR patch sukrutha Linux - Newbie 2 08-21-2011 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:12 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
Open Source Consulting | Domain Registration