LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-02-2015, 05:39 AM   #1
sitha pushkar
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Rep: Reputation: Disabled
problem in running codes of TORA


Hi,
I am new in linux. I have following problem while running the codes of TORA in ns-2.35 in ubuntu.Can you please help me?


num_nodes is set 6
INITIALIZE THE LIST xListHead

(_o22 cmd line 1)
invoked from within
"_o22 cmd port-dmux _o37"
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 "_o22" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent port-dmux $dmux_"
(procedure "_o19" line 11)
(Node/MobileNode add-target-rtagent line 11)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o19" line 28)
(Node/MobileNode add-target line 28)
invoked from within
"$self add-target $agent $port"
(procedure "_o19" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 85)
(Simulator create-wireless-node line 85)
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 n(0) [$ns node]"
(file "tora2.tcl" line 115)
 
Old 04-02-2015, 11:31 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Welcome to LQ.

TORA : Please read post #7 here
http://www.linuxquestions.org/questi...-4175537979/#7
 
Old 04-04-2015, 03:26 AM   #3
sitha pushkar
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Installation of ns2.35 .

Thanks for ur reply Knudfi.Now we want to install ns2.35 in ubuntu 14.04.so I follow the following steps
$ sudo apt-get update && sudo apt-get install g++ automake libtool libxmu-dev xgraph
In/home/name/<dir>/
$ tar xvf ns-allinone-2.35_gcc491.tar.gz
$ cd ns-allinone-2.35/
$ ./install
after this step we are getting 'linkstate error' so how can we remove it? plz help.
 
Old 04-04-2015, 04:13 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Re #3.

Which Ubuntu 14.04 ? i686 or x86_64 ?

This command will reply with architecture : $ uname -m
 
Old 04-05-2015, 05:37 AM   #5
sitha pushkar
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Problem in installing ns2.35 in ubuntu 14.04

Hi,
I follow installation steps but getting 'linkstate' error after step ./install & error is given below.
Attached Thumbnails
Click image for larger version

Name:	IMG_20140101_062058.jpg
Views:	9
Size:	262.1 KB
ID:	18008  
 
Old 04-05-2015, 05:53 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Re #5.

REPEAT :
?? Which Ubuntu 14.04 ? i686 or x86_64 ?
This command will reply with architecture : $ uname -m


And : Read post #2 : http://www.linuxquestions.org/questi...-4175537979/#7
>>> Ns-2.35 + tora :
$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
patch -p0 < tora_ns235.patch
$ ./install
$ cd ns-2.35/
$ cp ns ns235-tora
$ sudo make install
$ sudo cp ns235-tora /usr/local/bin/
$ cd ../nam-1.15/
$ sudo make install

Simulation :
$ ns235-tora tora2.tcl : OK.
$ ns235-tora wrls-tora1.tcl : OK.


And : No black images with error output, please.


-

Last edited by knudfl; 04-06-2015 at 08:20 AM.
 
Old 04-06-2015, 07:16 AM   #7
sitha pushkar
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Patching of TORA.

Hi Knudfi, thanks for ur reply
I want to patch tora in ns2.35 in ubuntu14.04. I have codes as well as patches .so where should i save .patch file. Where to install patches ? How to install patches? Plz give me steps for that. plz give quick reply.
 
Old 04-06-2015, 08:19 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Re #7.
Quote:
I want to patch tora in ns2.35 in ubuntu14.04
? Which Ubuntu 14.04 ? i686 or x86_64 ?


Quote:
I have codes as well as patches
There is one patch only : tora_ns235.patch .
Using : Copy 'tora_ns235.patch' to ns-allinone-2.35/
Steps : The above post #6
http://www.linuxquestions.org/questi...-4175538510/#6


-

Last edited by knudfl; 04-06-2015 at 08:55 AM.
 
Old 04-08-2015, 08:28 AM   #9
sitha pushkar
LQ Newbie
 
Registered: Apr 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for your previous reply
I follow your steps to patch TORA. But it gives same error as mention in previous post .i badly need ur help. plz suggest something.
 
Old 04-08-2015, 10:21 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Re #9.

Your OS is unknown. Read post #8.

Please show the reply from the command $ uname -m
 
  


Reply

Tags
ns2, tora


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
TORA protocol simulation result problem Aska123 Linux - Software 5 05-25-2014 05:34 AM
how to use 100% cpu for running parallel codes nipun arora Linux - Newbie 1 05-10-2014 11:12 AM
i need ns2 codes for DHAC,TEEN,TORA AND E-TORA AamirSohail Linux - Newbie 1 03-19-2014 03:45 AM
[SOLVED] Problem installing Tora 2.3.1 in CentOS 5.5 Felipe Linux - Software 8 04-24-2011 05:59 PM
Installing TOra 1.3.18 & Qt 3.3.5 on CentOS 4.1 (RHEL 4 U1) box running Oracle 10g R2 dbaxps Linux - Software 2 02-22-2007 09:41 AM

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

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