LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 01-26-2011, 10:54 AM   #16
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503

@ rochd, please read post # 2 here

http://www.linuxquestions.org/questi..._1-a-842686/#2

That's the one you also have in post #8 !

Quote : .. edit line 93--99 to the actual location .. in simple_mobileipv6.tcl

!
 
Old 01-26-2011, 07:38 PM   #17
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
this is my code in simple...
# set BASEDIR to your own correct path
source /home/rochd/ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/lib/proc-mipv6-config.tcl
source /home/rochd/ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/lib/proc-tools.tcl
source /home/rochd/ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/lib/proc-topo.tcl
source /home/rochd/ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/lib/ns-topoman.tcl
source /home/rochd/ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/lib/proc-mobi-global.tcl
source /home/rochd/ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/lib/proc-mobi-config.tcl
source /home/rochd/ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl
i added in source /ns-2.33-mobiwan because the files proc-mobi-global.tcl and..... no exist in ns2.33 directly
i hope help me thanks??
 
1 members found this post helpful.
Old 01-30-2011, 09:18 AM   #18
Elenka
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Rep: Reputation: 2
I think that your error indicates that you actually haven' t patched your ns source at all!
To be sure, can you write down the steps you took for patching?

BR

p.s. Sorry for my late answer ;-)
 
1 members found this post helpful.
Old 01-30-2011, 10:28 AM   #19
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
@Elenka
to keep the patch file "ns-233-mobiwan-1.path" in ns-2.33 folder in ns-allinone-2.33 directory.
and Install the patch by running "patch -p0 ns-233-mobiwan-1" from the ns-2.33 directory.
 
Old 01-30-2011, 11:05 AM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
patch -p0 ns-233-mobiwan-1 : Better 'patch -p0 < ns-233-mobiwan-1.patch'.

But it looks a little suspicious, that an ns-233-mobiwan/ directory is created
inside ns-allinone-2.33/ns-2.33/

So may be it is : cd ns-allinone-2.33/ && mv ns-233/ ns-233-mobiwan
And : cd ns-233-mobiwan/ && patch -p1 < ns-233-mobiwan-1.patch

? ? Then the files at least look OK. ?
./configure && make : Also OK.
The original stripped ns was 5.5 MB. The new ns (-mobiwan) is 5.7 MB,
when it has been stripped. ( 'strip ns' ).

..

Last edited by knudfl; 01-30-2011 at 11:09 AM.
 
Old 01-30-2011, 11:29 AM   #21
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
@
ok
 
Old 01-30-2011, 11:43 AM   #22
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
rochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33-mobiwan$ patch -p1 < ns-233-mobiwan-1.patch

Last edited by rochd; 02-06-2011 at 04:16 PM.
 
Old 01-30-2011, 11:55 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
The idea is to rename //ns-2.33/ to : ns-2.33-mobiwan
That's what the command 'mv ns-233/ ns-233-mobiwan' do : renaming.

The 'ns-2.33-mobiwan/' folder(s) present before renaming must be deleted.
Else the 'mv' command will move the ns-2.33/ folder into ns-2.33-mobiwan/ .

Also : Using an ns-2.33-mobiwan/ generated by 'patch' :
It has no 'configure'. And no original ns2 files, only the mobiwan files.

..

Last edited by knudfl; 01-30-2011 at 11:57 AM.
 
Old 01-30-2011, 11:56 AM   #24
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
I applied this
which already exists! Assume -R? [n] y
but
ochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33-mobiwan$ ./configure
bash: ./configure: Aucun fichier ou dossier de ce type
./configure not working any folder or file this type !!???
 
Old 01-30-2011, 12:00 PM   #25
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
@ ok
 
Old 01-30-2011, 12:04 PM   #26
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
No 'configure' script ? Then you are in the wrong directory.

Please look for ns-2.33/ inside ns-2.33-mobiwan/
If it's there, move it outside ns-2.33-mobiwan/ , and delete ns-2.33-mobiwan/.

Now you can rename ns-2.33/ , etc. etc.

..
 
Old 01-30-2011, 12:07 PM   #27
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
it works very well. / configure now I expect it to make ends
 
Old 01-30-2011, 12:17 PM   #28
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
configure and make are Excecutive
what to do now (execute simple .tcl ......)
i do
rochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33$ ns simple-mipv6.tcl
num_nodes is set 5
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (except for MobiWAN simulations)
INITIALIZE THE LIST xListHead

>-------------------- NS Addressing --------------------<
Domains (domain_num) : 2
Clusters (cluster_num) : 1 5
Nodes (nodes_num) : 1 1 3 1 1 1
>-------------------------------------------------------<

Erreur de segmentation
and
When I run out.nam nothing appears
rochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33$ ns out.nam
rochd@rochd-laptop:~/ns-allinone-2.33/ns-2.33$
thanks for all
help me please
thans f

Last edited by rochd; 01-30-2011 at 03:04 PM.
 
Old 01-30-2011, 01:26 PM   #29
Elenka
LQ Newbie
 
Registered: Dec 2010
Posts: 8

Rep: Reputation: 2
I see you have managed to patch and configure ns-2.33...
This new error...hmm...have you checked the script, some lines
contain an address where a necessary script should be found in the
ns directory but on Your computer? Sth like ...tcl/mobility/timer.tcl?
 
1 members found this post helpful.
Old 02-04-2011, 03:16 AM   #30
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1
@Elneka and @Knudfl
I'm still waiting for your help
Please
 
  


Reply

Tags
nsg2


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
problem in running "dsr.tcl" file. neeraj.dwivedi Linux - Newbie 17 06-11-2014 01:08 AM
Running tcl script in LINUX smruthana Linux - General 1 01-28-2007 03:04 AM
problems running textSTAT with python and tcl sigma1 Linux - Software 0 09-17-2006 09:38 AM
tcl script maphin Linux - General 1 05-18-2006 10:43 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM


All times are GMT -5. The time now is 06:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration