LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2015, 11:44 AM   #31
rizkampleng
LQ Newbie
 
Registered: Dec 2015
Posts: 12

Rep: Reputation: Disabled

Re #30
Thanks @knudfl, now i can successfully patch the file and copy the file to /usr/local/bin/.
but where location i can run the simulation? because when i try run on /usr/local/bin/ directory the result:

Quote:
rizka@Clonetrooper:/usr/local/bin$ ns ns235-zrp-olsr ddebbie90-scenario.tcl
can't read "X": no such variable
while executing
"ELF>\Q@U@8 @(@@@..."
(file "ns235-zrp-olsr" line 1)
Should i recompile the file??

Last edited by rizkampleng; 12-18-2015 at 09:40 AM.
 
Old 12-18-2015, 12:14 PM   #32
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
Re #31.
Quote:
$ ns ns235-zrp-olsr ddebbie90-scenario.tcl
Wrong. The command is 'ns235-zrp-olsr'. Please try. Without the simulation file.
As /usr/local/bin/ is a system PATH, you can do 'ns235-zrp-olsr' from any location.

And : The folders with simulation examples can have any location.

$ cd zrp-examples-2015/ && ns235-zrp-olsr zrp-Demo1-1.tcl

$ cd umolsr-examples-09.2015/ && ddebbie90-scenario.tcl



-

Last edited by knudfl; 12-18-2015 at 04:01 PM.
 
Old 12-18-2015, 01:36 PM   #33
rizkampleng
LQ Newbie
 
Registered: Dec 2015
Posts: 12

Rep: Reputation: Disabled
Re #31

when i execute the command 'ns235-aro-olsr' it shows:
Code:
rizka@Clonetrooper:~$ ns235-zrp-olsr 

%
is it right or not?

and when i try the simulations:

Code:
rizka@Clonetrooper:~/zrp-examples$ ns235-zrp-olsr zrp-Demo1-1.tcl
num_nodes is set 10

    (_o15 cmd line 1)
    invoked from within
"_o15 cmd addr"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o15" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o15 addr"
    ("eval" body line 1)
    invoked from within
"eval $node addr $args"
    ("default" arm line 2)
    invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
    (procedure "_o3" line 14)
    (Simulator create-wireless-node line 14)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns_ node"
    ("for" body line 3)
    invoked from within
"for {set i 0} {$i < $val(nn)} {incr i} {

set node_($i) [$ns_ node]

$node_($i) random-motion 0

$ns_ initial_node_pos $node_($i) 120

}"
    (file "zrp-Demo1-1.tcl" line 83)
and the other one:

Code:
rizka@Clonetrooper:~/umolsr-examples-09.2015$ ns235-zrp-olsr ddebbie90-scenario.tcl
num_nodes is set 15

    (_o14 cmd line 1)
    invoked from within
"_o14 cmd addr"
    invoked from within
"catch "$self cmd $args" ret"
    invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
    (procedure "_o14" line 2)
    (SplitObject unknown line 2)
    invoked from within
"_o14 addr"
    ("eval" body line 1)
    invoked from within
"eval $node addr $args"
    ("default" arm line 2)
    invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
    (procedure "_o3" line 14)
    (Simulator create-wireless-node line 14)
    invoked from within
"_o3 create-wireless-node"
    ("eval" body line 1)
    invoked from within
"eval $self create-wireless-node $args"
    (procedure "_o3" line 23)
    (Simulator node line 23)
    invoked from within
"$ns node"
    invoked from within
"set n0 [$ns node]"
    (file "ddebbie90-scenario.tcl" line 64)

Sorry for post to many quote, i hope it will help to solve the error.

Last edited by rizkampleng; 12-18-2015 at 09:59 PM.
 
Old 12-18-2015, 04:17 PM   #34
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
Re #33.

Error output is supposed to be in "code tags".
I.e. [code]error text[/code] .
Please edit post #33. That's the 'Edit' button in post #33.

Your errors : Is the output from the otcl library (inside the excutable 'ns235-zrp-olsr'.)
And they just tell that you have a failed build.

Please start from scratch with a new unpacked ns-allinone-2.35_gcc482.tar.gz,
in a new folder in /home/<name>/. (Cannot be the Desktop/.)

Code:
tar xvf ns-allinone-2.35_gcc482.tar.gz
cd ns-allinone-2.35/
patch -p0 < zrp-ns235.patch
patch -p0 < umolsr_for-zrp-patched_ns235.patch
./install
cd ns-2.35/ && cp ns ns235-zrp-olsr-1
.... etc. etc
 
Old 12-18-2015, 10:04 PM   #35
rizkampleng
LQ Newbie
 
Registered: Dec 2015
Posts: 12

Rep: Reputation: Disabled
Re #34

@knudfl yes i have edited post #33.
i have unpacked a new file and at the last there is a error code:
Code:
tar: Exiting with failure status due to previous errors
is it succeed or not?

then i still try to patch the zrp-ns235 and ./install, it shows:
Code:
make: *** [install-binaries] Error 1
tcl8.5.10 installation failed.
should i remove the old ns-allinone-2.35 package?

Last edited by rizkampleng; 12-18-2015 at 10:29 PM.
 
Old 12-19-2015, 12:14 AM   #36
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
Re #35.
Quote:
should i remove the old ns-allinone-2.35 package ?
Not necessarily.
You can have as many ns-allinone-2.xx as you want, installed at the same time.


Your errors : Are you sure you made a new directory for the next build ?
A typical setup can be :
/home/<name>/ns2/a/ns-allinone-2.35/
/home/<name>/ns2/b/ns-allinone-2.35/
/home/<name>/ns2/c/ns-allinone-2.35/
/home/<name>/ns2/01/ns-allinone-2.35/
/home/<name>/ns2/02/ns-allinone-2.35/
/home/<name>/ns2/03/ns-allinone-2.35/
/home/<name>/ns2/04/ns-allinone-2.35/
/home/<name>/ns2/05/ns-allinone-2.35/
 
1 members found this post helpful.
Old 12-19-2015, 12:26 AM   #37
rizkampleng
LQ Newbie
 
Registered: Dec 2015
Posts: 12

Rep: Reputation: Disabled
Re #36

@knudfl so it means that i should to make new directory to install NS2 or what?
how about the error message at post 35?
 
Old 12-19-2015, 01:40 PM   #38
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
Re #37.

Of course. That's what posts #34 and #36 is about.
 
1 members found this post helpful.
Old 12-19-2015, 10:52 PM   #39
rizkampleng
LQ Newbie
 
Registered: Dec 2015
Posts: 12

Rep: Reputation: Disabled
Re #38

Thanks @knudfl the patch successfully patched, and there's no error when installation.
but when i run the tcl the output:
Code:
rizka@Clonetrooper:~/ns2/a/zrp-examples$ ns235-zrp-olsr example-zrp.tcl
invalid command name "Agent/ZRP"
    while executing
"Agent/ZRP set radius_ 2 "
    (file "example-zrp.tcl" line 68)
where is the fault?
 
Old 12-20-2015, 12:26 AM   #40
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
Re #39.

? Which Ubuntu version are you using ?
Please show the output from these two commands :
a) $ uname -m
b) $ cat /etc/issue


-
 
Old 12-20-2015, 01:54 AM   #41
rizkampleng
LQ Newbie
 
Registered: Dec 2015
Posts: 12

Rep: Reputation: Disabled
Re #40
@knudfl
a)
Code:
rizka@Clonetrooper:~$ uname -m
x86_64
b)
Code:
rizka@Clonetrooper:~$ cat /etc/issue
Ubuntu 14.04.3 LTS \n \l
id there any problem with the Ubuntu version that i use?

Last edited by rizkampleng; 12-20-2015 at 08:09 PM.
 
Old 12-20-2015, 11:43 PM   #42
rizkampleng
LQ Newbie
 
Registered: Dec 2015
Posts: 12

Rep: Reputation: Disabled
@knudfl
oh i have successfully instaall it, but it runs only at zrp-examples and umolsr-examples directory when i try run at home directory
"no such file or directory".
is it correct??
 
Old 01-09-2016, 05:19 PM   #43
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
Re #42, #41.

May work with a 64bits OS. Else : Use a 32bits OS.


Quote:
"no such file or directory"
You will have to go to the folder with the zrp-examples, to do ZRP simulations :
$ cd zrp-examples-2015/ && ns235-zrp-olsr-1 file.tcl

And to the folder with the the olsr-examples for OLSR simulations :
$ cd umolsr-examples-09.2015/ && ns235-zrp-olsr-1 file.tcl


-
 
  


Reply

Tags
ns2, olsr, zrp


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
How to install ZRP (Zone routing protocol) patch in ns-2.34 hassan329 Ubuntu 225 03-24-2018 06:58 AM
How to patch GPSR routing protocol to ns-2.34 nimacasino Linux - Software 287 06-10-2014 12:27 PM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
Time Zone patch diskoe Slackware 41 03-13-2007 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:00 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