LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-07-2017, 07:30 PM   #1
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Rep: Reputation: Disabled
problem with tcl script


i have a problem with ns2.35 on ubuntu 14.04 lts when im execute this script
lsn@admin:~$ ns235-rumor '/home/lsn/Downloads/test/wrls-rumor-a30node.tcl'
i get
num_nodes is set 31
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead

but no thing to show he's stay like that thnx for help

Last edited by dadi1004; 04-08-2017 at 05:43 AM.
 
Old 04-07-2017, 07:37 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
The link in post #1 is "half a copy of half a link".
Please edit : That's the 'Edit' button in post #1.

How to copy a link address : Right click, and select "Copy Link Location".
 
Old 04-08-2017, 05:58 AM   #3
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
The link in post #1 is "half a copy of half a link".
Please edit : That's the 'Edit' button in post #1.

How to copy a link address : Right click, and select "Copy Link Location".
i used this script https://drive.google.com/file/d/0B7S...ew?usp=sharing
but the same problem (infinite loop)
 
Old 04-08-2017, 06:29 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
OK, 'wrls-rumor-a30node.tcl' it is.

Some information is missing : Your OS name and version.


'wrls-rumor-a30node.tcl' does not work with all new OSīs.

The two most stable results are with rumor-test3.tcl and 1000-wrls-rumor-a30node.tcl



-

Last edited by knudfl; 04-08-2017 at 06:31 AM.
 
Old 04-08-2017, 10:43 AM   #5
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
OK, 'wrls-rumor-a30node.tcl' it is.

Some information is missing : Your OS name and version.


'wrls-rumor-a30node.tcl' does not work with all new OSīs.

The two most stable results are with rumor-test3.tcl and 1000-wrls-rumor-a30node.tcl



-
ok Knudfl im working in ubuntu 14.04 LTS i get updated and i have installed your version of ns2.35gcc4.82 with these instructions
http://installwithme.blogspot.com/20...-or-14.04.html
 
Old 04-08-2017, 11:05 AM   #6
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
? How did it work out with the two stable examples ?

I.e. rumor-test3.tcl and 1000-wrls-rumor-a30node.tcl


About : http://installwithme.blogspot.com/20...-or-14.04.html
Please do not use. Old and some wrong details like 'sudo ./install', etc.

ns-allinone-2.35_gcc482.tar.gz is already an updated version, with the required patches included !


-

Last edited by knudfl; 04-08-2017 at 11:26 AM.
 
Old 04-08-2017, 12:08 PM   #7
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
? How did it work out with the two stable examples ?

I.e. rumor-test3.tcl and 1000-wrls-rumor-a30node.tcl


About : http://installwithme.blogspot.com/20...-or-14.04.html
Please do not use. Old and some wrong details like 'sudo ./install', etc.

ns-allinone-2.35_gcc482.tar.gz is already an updated version, with the required patches included !


-
with 1000-wrls-rumor-a30node.tcl the same problem but its work with rumor-test3.tcl
 
Old 04-08-2017, 01:56 PM   #8
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
Ubuntu 14.04 - x86_64 :
Only the example "rumor-test3.tcl" can be run. When creating rumor with Ubuntu 14.04 .

CentOS 6.9 - x86_64 : All three examples can be run.


To run all three examples, install the package for Ubuntu 14.04 rumor-ns_2.34_amd64.deb
... provides /usr/local/bin/ns234-Rumor69
Link https://drive.google.com/file/d/0B7S...ew?usp=sharing
Install command : sudo gdebi rumor-ns_2.34_amd64.deb

ns234-Rumor69 1000-wrls-rumor-a30node.tcl
ns234-Rumor69 wrls-rumor-a30node.tcl
ns234-Rumor69 rumor-test3.tcl
... All three simulations are run.

-
 
Old 04-08-2017, 02:23 PM   #9
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Ubuntu 14.04 - x86_64 :
Only the example "rumor-test3.tcl" can be run. When creating rumor with Ubuntu 14.04 .

CentOS 6.9 - x86_64 : All three examples can be run.


To run all three examples, install the package for Ubuntu 14.04 rumor-ns_2.34_amd64.deb
... provides /usr/local/bin/ns234-Rumor69
Link https://drive.google.com/file/d/0B7S...ew?usp=sharing
Install command : sudo gdebi rumor-ns_2.34_amd64.deb

ns234-Rumor69 1000-wrls-rumor-a30node.tcl
ns234-Rumor69 wrls-rumor-a30node.tcl
ns234-Rumor69 rumor-test3.tcl
... All three simulations are run.

-
i have ubuntu _x86 but i have installed rumor-ns-2.34-ubuntu10_i386.deb on ns2.35 if no problem

Last edited by dadi1004; 04-08-2017 at 02:56 PM.
 
Old 04-08-2017, 03:35 PM   #10
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 #9 : OK, Ubuntu 14.04 - i386.

Quote:
I have installed rumor-ns-2.34-ubuntu10_i386.deb on ns2.35 if no problem
No. The package.deb isn't installed into ns-2.35 .

When installing rumor-ns-2.34-ubuntu10_i386.deb with 'gdebi name.deb' :
You get /usr/local/bin/ns-rumor
/usr/local/lib/rumor/ns-allinone-2.34/{ bin/, lib/ }

Testing with Ubuntu 14.04 - i386 / i686 :
ns-rumor 1000-wrls-rumor-a30node.tcl : nam opens OK.
ns-rumor wrls-rumor-a30node.tcl : nam opens OK.
ns-rumor rumor-test3.tcl : OK.


-

Last edited by knudfl; 04-08-2017 at 03:41 PM.
 
Old 04-08-2017, 04:39 PM   #11
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Re #9 : OK, Ubuntu 14.04 - i386.


No. The package.deb isn't installed into ns-2.35 .

When installing rumor-ns-2.34-ubuntu10_i386.deb with 'gdebi name.deb' :
You get /usr/local/bin/ns-rumor
/usr/local/lib/rumor/ns-allinone-2.34/{ bin/, lib/ }

Testing with Ubuntu 14.04 - i386 / i686 :
ns-rumor 1000-wrls-rumor-a30node.tcl : nam opens OK.
ns-rumor wrls-rumor-a30node.tcl : nam opens OK.
ns-rumor rumor-test3.tcl : OK.


-
ok when i installing rumor-ns-2.34-ubuntu10_i386.deb with gdebi i get command not found so i installed from ubuntu software center ,i tested the three examples,nam opens with all examples but wich distrubution of linux's best for ns2 and execute rumor with no problem

Last edited by dadi1004; 04-08-2017 at 04:54 PM.
 
Old 04-08-2017, 06:11 PM   #12
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
Quote:
wich distrubution of linux's best for ns2 and execute rumor with no problem
As you can read in my above posts, a build of ns2 + rumor can be done with CentOS 6.9.
And that's the only supported oldish OS, which still can do that.
( Support ends July 31, 2018, AFAIK.)

But as you have experienced :
Rumor packages built with CentOS 6 and an old not updated Ubuntu 10.10 can still run with 14.04.


-
 
Old 04-08-2017, 06:38 PM   #13
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
As you can read in my above posts, a build of ns2 + rumor can be done with CentOS 6.9.
And that's the only supported oldish OS, which still can do that.
( Support ends July 31, 2018, AFAIK.)

But as you have experienced :
Rumor packages built with CentOS 6 and an old not updated Ubuntu 10.10 can still run with 14.04.


-
so if i would developping an other protocol based on rumor i should working with cent os that's better than ubuntu 14.04 or 16.04
 
Old 04-08-2017, 07:11 PM   #14
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
Quote:
So if I would develop an other protocol based on rumor
I should working with CentOs that's better than ubuntu 14.04 or 16.04
CentOS 6.9 yes, else you cannot test your result.
(Unless you do a total rewrite of the original rumor code, to make it work with a contemporary glibc (libc6).)


-

Last edited by knudfl; 04-08-2017 at 08:00 PM.
 
Old 04-08-2017, 07:22 PM   #15
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
CentOS 6.9 yes, else you cannot test your result.
(Unless you do a total rewrite of the original code, to make it work with a contemporary glibc (libc6).)


-
so cent os 6.9 minimaliso its good , if i find enough of time i will rewrite it

Last edited by dadi1004; 04-08-2017 at 07:46 PM.
 
  


Reply

Tags
ns2, rumor



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
Problem running an AntNet tcl script! zakizakizaki Linux - Newbie 6 01-04-2020 01:17 PM
[SOLVED] The problem of running the tcl script file in the NS2.31+crcn environment syxcod Linux - Software 16 11-24-2015 04:12 PM
problem with running tcl script under ns 2.33 manjunath11 Linux - Newbie 56 02-11-2014 08:26 AM
problem with xgraph while trying to run tcl script manjusha029 Linux - Wireless Networking 1 12-30-2013 09:23 PM
when .Slicer3/Script/getbuildtest.tcl run arise this problem .mainliy this is cvs pro divya chauhan Linux - Newbie 0 07-17-2012 02:16 AM

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

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