LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem with tcl script (https://www.linuxquestions.org/questions/linux-newbie-8/problem-with-tcl-script-4175603424/)

dadi1004 04-07-2017 07:30 PM

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

knudfl 04-07-2017 07:37 PM

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".

dadi1004 04-08-2017 05:58 AM

Quote:

Originally Posted by knudfl (Post 5694107)
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)

knudfl 04-08-2017 06:29 AM

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



-

dadi1004 04-08-2017 10:43 AM

Quote:

Originally Posted by knudfl (Post 5694252)
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

knudfl 04-08-2017 11:05 AM

? 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 !


-

dadi1004 04-08-2017 12:08 PM

Quote:

Originally Posted by knudfl (Post 5694317)
? 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

knudfl 04-08-2017 01:56 PM

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.

-

dadi1004 04-08-2017 02:23 PM

Quote:

Originally Posted by knudfl (Post 5694391)
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

knudfl 04-08-2017 03:35 PM

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.


-

dadi1004 04-08-2017 04:39 PM

Quote:

Originally Posted by knudfl (Post 5694429)
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

knudfl 04-08-2017 06:11 PM

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.


-

dadi1004 04-08-2017 06:38 PM

Quote:

Originally Posted by knudfl (Post 5694494)
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

knudfl 04-08-2017 07:11 PM

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).)


-

dadi1004 04-08-2017 07:22 PM

Quote:

Originally Posted by knudfl (Post 5694529)
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


All times are GMT -5. The time now is 04:56 AM.