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

Rep: Reputation: Disabled
problem while run dymo tcl file on ns-2.34 in ubuntu15.10


I have downloaded dymoum-0.3.tgz

I have followed these commands to add dymoum-0.3patch in ns-allinone-2.34:

$ cd ns-allinone-2.34/ns-2.34/
$ tar zxvf dymoum-0.3.tgz
$ cd ns-allinone-2.34/ns-2.34/dymoum-0.3
$patch -p1 < dymoum/dymoum_ns-2.34_v0.3.patch
then I installed ns ./install

the installation completed successfully

but the problem Is that I get an error when I run a test_2n.tcl example which is in dymoum-0.3/ns/test

Code:

invalid command name "Agent/DYMOUM"
while executing
"Agent/DYMOUM set debug_ true"
(file "test_2n.tcl" line 42)
 
Old 04-02-2017, 02:52 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,325

Rep: Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583
welcome to LQ.

Dymoum : The old patch 'dymoum_ns-2.34_v0.3.patch' cannot be used as is.

Besides that, new patches including all dymo are available :
1. DYMO-03-all_ns234-gcc5.patch with this included ...
{ns234_gcc49.patch + Edited-dymoum_ns-2.34_v0.3.patch + the dymoum/ folder}

cd ns-allinone-2.34/
patch -p0 < DYMO-03-all_ns234-gcc5.patch
./install


2. DYMO-03-all__ns235.patch , for ns-allinone-2.35_gcc482.tar.gz
cd ns-allinone-2.35/
patch -p0 < DYMO-03-all__ns235.patch
./install

Links, see https://stackoverflow.com/questions/...-34-dymo-patch


-

Last edited by knudfl; 04-02-2017 at 03:01 PM.
 
1 members found this post helpful.
Old 04-03-2017, 04:28 AM   #3
israk
LQ Newbie
 
Registered: Apr 2017
Posts: 18

Original Poster
Rep: Reputation: Disabled
problem while run dymo tcl file on ns-2.34 in ubuntu15.10

Thank you very much for your help...
I am very new in ubuntu ...please anyone hepl me to solve this problem ... i have installed ns allinone-2.35 successfully ,but in the time of installing dymoum patch i got this error ....i tried my best to solve this but failed ...Kindly anybody help me:

errror:

Installing libtcl8.5.a to /home/sabin/ns-allinone-2.35/lib/
cp: cannot create regular file ‘/home/sabin/ns-allinone-2.35/lib/#inst.9424#’: Permission denied
rm: cannot remove ‘/home/sabin/ns-allinone-2.35/lib/libtcl8.5.a’: Permission denied
mv: cannot stat ‘/home/sabin/ns-allinone-2.35/lib/#inst.9424#’: No such file or directory
ranlib: could not create temporary file whilst writing archive: No more archived files
Makefile:707: recipe for target 'install-binaries' failed
make: *** [install-binaries] Error 1
tcl8.5.10 installation failed.
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.
 
Old 04-03-2017, 07:16 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,325

Rep: Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583
Re #3.
Quote:
Permission denied
Probably means that you unpacked 'ns-allinone-2.34.tar.gz' by using sudo.
... Or by using a Windows© tool. Or copied ns-allinone-2.34/ from USB.

Please start from scratch with a new ns-allinone-2.34.
The failed install must be removed : sudo rm -r ns-allinone-2.34/

The commands are :
Code:
cd /home/sabin/ (If that isn't already your location. Check with the pwd command)
tar xvf ns-allinone-2.34.tar.gz
patch -p0 < DYMO-03-all_ns234-gcc5.patch
./install
cd ns-2.34/
sudo make install (Will copy the executable 'ns' to /usr/local/bin/)
cp ns ns234-dymo (This is your backup of the dymo patched 'ns')
sudo cp ns234-dymo /usr/local/bin/
.... and that's the only two commands that ever will require sudo with ns2.

-

Last edited by knudfl; 04-03-2017 at 07:20 AM.
 
1 members found this post helpful.
Old 04-04-2017, 12:16 AM   #5
israk
LQ Newbie
 
Registered: Apr 2017
Posts: 18

Original Poster
Rep: Reputation: Disabled
problem while run dymo tcl file on ns-2.34 in ubuntu15.10

Thank you very much #knudfl...
i have installed &patching dymo successfully..but i can't run dymo's (code)
from ns-2.34/dymoum/ns/test(test_2n.tcl)
when i tried to run this test_2n.tcl file..following error occurs:

sabin@sabin-desktop:~/ns-allinone-2.34/ns-2.34$ sudo cp ns234-dymo /usr/local/bin/
sabin@sabin-desktop:~/ns-allinone-2.34/ns-2.34$ ns test_2n.tcl
couldn't read file "test_2n.tcl": no such file or directory
sabin@sabin-desktop:~/ns-allinone-2.34/ns-2.34$

Actually i don't know how to run dymo code..please help me to run dymo.tcl code
I am very thankful to you# knudfl
please forgive my bad english
 
Old 04-04-2017, 07:23 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,325

Rep: Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583
Re #5.

"ns-allinone-2.34/ns-2.34/dymoum/ns/test/" :

"test/" is independent of ns-2.34/ and can be copied to any location.

Simulations :
Code:
cd test/
ns234-dymo test_3n.tcl  (Result = test_3n.nam 172kB, test_3n.tr 132kB)
nam test_3n.nam
You can get a usable 'nam' package from https://drive.google.com/file/d/0B7S...ew?usp=sharing
.... There is no usable 'nam' from ns-allinone-2.34, or from the Ubuntu package manager.


-

Last edited by knudfl; 04-04-2017 at 07:51 AM.
 
1 members found this post helpful.
Old 04-04-2017, 08:36 AM   #7
israk
LQ Newbie
 
Registered: Apr 2017
Posts: 18

Original Poster
Rep: Reputation: Disabled
problem while run dymo tcl file on ns-2.34 in ubuntu15.10

Thank you very much #knudfl
Now i can run dymo code .

The link which you give me for nam (https://drive.google.com/file/d/0B7S...ew?usp=sharing)...
this nam is for OS-64 but my OS is ubuntu(86).
Can you please give me a link for nam.. (86 OS)
i AM VERY MUCH THANKFUL TO YOU..
 
Old 04-04-2017, 09:37 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,325

Rep: Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583
Re #7.
Quote:
my OS is ubuntu(86).
? i386/i686 ? Please test with this command : uname -m


Link to 'nam_1.15-10_i386.deb' : https://drive.google.com/file/d/0B7S...ew?usp=sharing

All nam packages http://www.linuxquestions.org/questi...-4175524760/#2


-
 
1 members found this post helpful.
  


Reply

Tags
dymo, dymoum, ns2


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
a tcl file that run RWP in ns2 Alkindi Linux - Newbie 3 06-30-2016 12:21 PM
using scenario file to run vbf_example tcl file Alkindi Linux - Wireless Networking 8 06-18-2016 03:31 PM
Get Error after run tcl file for OLSR....anyone please help AUJU Linux - Newbie 21 10-28-2015 07:42 AM
NS2: regarding error during run .tcl file bhupendrapatel Linux - Software 4 05-03-2013 10:32 AM

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

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