LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-13-2011, 12:01 PM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

#14
Quote:
yahoo YM
All technical discussion is meant to take place in the Forums,
so everybody can benefit from the answers. See # 8 in 'LQ Rules'
http://www.linuxquestions.org/linux/rules.html

Quote:
I want to install NSDTN-1 in order to simulate that
Please first verify that the build of ns-allinone-2.27 went OK.

When you have a perfect working ns-allinone-2.27 :
Add dtn/ folder, do the patching.
Save the binary ns-allinone-2.27/ns-2.27/ns to a new name (ns227),
delete 'ns', run make clean && make in ns-allinone-2.27/ns-2.27/ to get a new ns.

Last edited by knudfl; 03-13-2011 at 04:50 PM.
 
Old 03-13-2011, 12:08 PM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 15.
cd ns-allinone-2.27/ns-2.27/ && ./ns dtn-demo-large.tcl : OK here.

? Did you do : cd ns-allinone-2.27/ns-2.27/
&& patch -p1 < ns-2.27.patch && patch -p0 < dtn-2.27.patch

Suggest : Delete ns and run make again.
..
Attached Thumbnails
Click image for larger version

Name:	screen21975.jpg
Views:	23
Size:	21.6 KB
ID:	6389  

Last edited by knudfl; 03-13-2011 at 12:22 PM.
 
Old 03-13-2011, 02:19 PM   #18
easyvn112
Member
 
Registered: Mar 2011
Posts: 37

Original Poster
Rep: Reputation: 2
Can you help me describe exactly how to install Ns-allinone-2.27?

I've followed the instructions in this link without success.

http://www.linuxquestions.org/questions/linux-newbie-8/re-help-regarding-installation-of-ns-2-27-on-ubuntu-9-10-a-782356/#3

If you can return your video settings are good too.

I have installed both Ns-2:27 to 10 times but failed to buil tcl8.4.5 is.
your help.

Thank you very much.
 
Old 03-13-2011, 02:52 PM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
I have installed ns-2.27 10 times but failed to build tcl8.4.5
Hard to tell, what you are doing wrong.

But there are of course more ways to do the modifications. Let's try a new one :
( Which does exactly the same.)

cd ns-allinone-2.27 : Delete tcl8.4.5/, tk8.4.5/, otcl-1.8/, tclcl-1.15/

Next : Add tcl8.4.18/, tk8.4.18/, otcl-1.13/, tclcl-1.19/ from ns-allinone-2.34.

Rename the four added packages to: tcl8.4.5/, tk8.4.5/, otcl-1.8/, tclcl-1.15/

...... And run ./install

..
 
Old 03-13-2011, 02:59 PM   #20
easyvn112
Member
 
Registered: Mar 2011
Posts: 37

Original Poster
Rep: Reputation: 2
I see this error
make: *** [libotcl.so] Error 1
otcl-1.8 make failed! Exiting ...

How to fix?

I do not understand how your

"chain install" ???????

You help file "bashrc".

Directory forder

/ home/academy/Desktop/ns-allinone-2.27
/ home/academy/Desktop/ns-allinone-2.34

Last edited by easyvn112; 03-13-2011 at 03:11 PM.
 
Old 03-13-2011, 03:53 PM   #21
easyvn112
Member
 
Registered: Mar 2011
Posts: 37

Original Poster
Rep: Reputation: 2
Excellent, I have successfully installed NS-2.27.

I fix erros this

"make: *** [libotcl.so] Error 1
otcl-1.8 make failed! Exiting ... "

by going to file in the directory make.in otcl-1:13. and repair
CC = @ CC @ ==> CC = gcc-3.3
......

The problem now is only a file "bashrc".

Pleas! You help yourself

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Thanks "knudfl" very much.

Last edited by easyvn112; 03-13-2011 at 03:54 PM.
 
Old 03-13-2011, 03:59 PM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 20
Quote:
make: *** [libotcl.so] Error 1 otcl-1.8 make failed !
'otcl-1.8' : Are you sure this is a renamed otcl-1.13 ?


Quote:
Directory order

/home/academy/Desktop/ns-allinone-2.27
/home/academy/Desktop/ns-allinone-2.34
You can move ns-allinone-2.34 to another directory.
If you followed post # 19 : ns-allinone-2.34 is not required anymore.

Also : Dektop/ is not the suggested place for ns2 : You cannot move it after build.
/home/academy/ns2/ns-allinone-2.27/ is better.
( Imagine a lot of applications : Your Desktop will be crowded.)

..

Last edited by knudfl; 03-13-2011 at 04:12 PM.
 
Old 03-13-2011, 04:07 PM   #23
easyvn112
Member
 
Registered: Mar 2011
Posts: 37

Original Poster
Rep: Reputation: 2
I follow the instructions at the link

http://www.linuxquestions.org/questi...9-10-a-782356/ # 3

help you file "bashrc"

and help to add more DTN.
The more detailed the better.
thank you very much.
 
Old 03-13-2011, 04:10 PM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 21
Quote:
The problem now is only a file "bashrc".
Doesn't matter. ( Probably.) I never use it. It's just an old text.
The command "ns227" works everywhere : The binary ns is partly statically compiled :
tcl tk otcl tclcl is compiled into ns : ns will use libraries in /usr/lib/ only.

About the binary 'ns' : rename to ns227 before adding dtn.

The path for ns and nam : sudo cp ns227 /usr/local/bin/
sudo cp ns /usr/local/bin/ ; sudo cp nam /usr/local/bin/ :
Then they are in a system path.

..
 
Old 03-14-2011, 08:27 AM   #25
easyvn112
Member
 
Registered: Mar 2011
Posts: 37

Original Poster
Rep: Reputation: 2
My friend.

I do not understand how you add DTN in the NS2.27
What more forder "ns"

You explain in detail how to do?
 
Old 03-14-2011, 11:48 AM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
http://www.illuvatar.nu/ns-dtn/code/ nsdtn-1.tar.gz
tar xvf nsdtn-1.tar.gz cd nsdtn-1/

Follow the first steps in the README file ( 3... 5 )

3. 5.
cp scripts/ns-2.27.patch ns-allinone-2.27/ns-2.27/
cp scripts/dtn-2.27.patch ns-allinone-2.27/ns-2.27/
cp -r dtn/ ns-allinone-2.27/ns-2.27/

4.
cd ns-allinone-2.27/ns-2.27/
patch -p1 < ns-2.27.patch
patch -p0 < dtn-2.27.patch

And then :
make clean
./configure
make

8. All done. Now try out the two TCL-scripts located in scripts/.
ns scripts/dtn-demo-small.tcl
ns scripts/dtn-demo-large.tcl
..
 
Old 03-14-2011, 08:02 PM   #27
easyvn112
Member
 
Registered: Mar 2011
Posts: 37

Original Poster
Rep: Reputation: 2
I've followed your instructions step.
the process make clear / configure and make worked.
but when running the DTN-demo-fault small.tcl erros
"
sai command name "Agent / DTNAgent"
khi thực
"Agent / create _o59 DTNAgent"
invoked from within
"catch" $ className create $ o $ args "msg"
invoked from within
"if [catch" $ className create $ o $ args "msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $ msg] {
delete $ o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent / DTNAgent"
invoked from within
"set dtn1 [new Agent / DTNAgent]"
(file "scripts / DTN-demo-small.tcl" line 33)
"

and run the DTN-demo-large.tcl erro

"
sai command name "Agent / DTNAgent"
khi thực
"Agent / DTNAgent set custodian_ 10"
(file "DTN-demo-large.tcl" line 6)

"

you can not explain this error?
 
Old 03-15-2011, 05:18 AM   #28
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please have a look into ns-allinone-2.27/ns-2.27/dtn/ :
Were the dtn objects created ? 1) cd ns-allinone-2.27/ns-2.27/dtn/
2) find ./* -name "*.o"

./bundlemanager.o
./bundle.o
./dtn.o
./headers.o
./registration.o
./routes.o
./strrecords.o
./timers.o
 
Old 03-15-2011, 07:44 AM   #29
easyvn112
Member
 
Registered: Mar 2011
Posts: 37

Original Poster
Rep: Reputation: 2
All existing

You watch over me so it does not run?
 
Old 03-15-2011, 10:15 AM   #30
easyvn112
Member
 
Registered: Mar 2011
Posts: 37

Original Poster
Rep: Reputation: 2
Ns-2.27 configuration when I have found that the
gen/nam_tcl.cc
gcc-opt: Failed to open /CurrentlyBuilding



it may affect the running Ns?
Attached Thumbnails
Click image for larger version

Name:	d.jpg
Views:	24
Size:	82.7 KB
ID:	6412  
 
  


Reply

Tags
dtn, ns2, nsdtn



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
Any network simulator 2 (ns2) experts around? Titanas25 Programming 1 06-12-2012 06:24 AM
wireless network simulation using ns2 berry123 Linux - Newbie 1 03-10-2011 02:15 AM
ns2- network simulator problem vivekr Linux - Networking 5 02-16-2011 12:25 PM
[SOLVED] Ubuntu 10.04 delay mounting network shares in fstab until network is up politik Linux - Networking 14 06-24-2010 07:36 PM
NS2 - network simulator liquid.o Linux - Networking 0 11-24-2006 10:36 AM

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

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