[ns] Re: MobiWan installation
Srilatha Jayanthi
sjayanth@memphis.edu
Thu Apr 11 10:25:05 2002
--------------9C910E7B415ED52C593C5B48
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
Thanks for your help. But you are not getting my problem. I know
typing ./simple-mipv6.sh is (almost) equal to typing ns
simple-mipv6.tcl. My problem is when I type in ./simple-mipv6.sh it is
giving me an error "setenv: Too many arguments." When i tried to debug
the script I got the following error:
sh -x simple-mipv6.sh
+ set NS = ns
+ set OUTDIR=.tmp
+ echo Output in temporary directory
Output in temporary directory
+ [ -d ]
+ mkdir
mkdir: Failed to make directory ""; No such file or directory
+ set NAMF={}/out.nam
+ set TRACEF={}/out.tr
+ set INFOF={}/out.info
+ simple-mipv6.tcl -mactrace OFF -NAM 1 -namfile -stop 1000 -tracefile
simple-mipv6.sh: simple-mipv6.tcl: execute permission denied
When I tried to run simple-mipv6.tcl I got the following error:
ns simple-mipv6.tcl
* Command Line is:
can't read "opt(tracefile)": no such element in array
while executing
"exec rm -f $opt(tracefile)"
(procedure "main" line 17)
invoked from within
"main"
(file "simple-mipv6.tcl" line 137)
Please help me. I don't know where the problem is.
Srilatha Jayanthi
Alex Hamidian wrote:
> Hi,
> First of all; please send this also to the ns mailing list - maybe it
> will help others in the future.
>
> 1.
> If you've given the paths to the directories correctly (in ~/.bashrc)
> it doesn't matter from where you run your tcl scripts. But if you
> havn't done that you probably have to run it from a specific
> directory. I'm not an expert on Linux (nor ns) since I've only used it
> (them) for two months.
> I told you not to type ns in front of simple-mipv6.sh because it will
> do that automatically. Take a look at the file simple-mipv6.sh. As you
> can see from the last line
>
> # Launch simulation
> $NS simple-mipv6.tcl -mactrace OFF -NAM 1 -namfile $NAMF -stop
> 1000 -tracefile $TRACEF
>
> ns will be run. In other words: typing ./simple-mipv6.sh is (almost)
> equal to typing ns simple-mipv6.tcl.
> You just have to change from $NS = ns-mipv6 to $NS = ns (which you
> said you already had done!).
>
>
> 2.
> The timer.tcl problem is easy to fix. You have to change the path to
> timer.tcl in simple-mipv6.tcl (around line 88).
> Now it says something like: source
> ../../ns-2/ns-mipv6/tcl/mobility/timer.tcl
> Change it to: source <your
> path>/ns-2/ns-mipv6/tcl/mobility/timer.tcl
> For example in my case it is: source
> ~/ns/mobiwan/ns-2/ns-mipv6/tcl/mobility/timer.tcl
>
> By the way: Please tell me if the "installation guide" did help or not
> and tell me what was good and what was bad and if something was wrong.
>
> Good luck
> Ali Hamidian
>
>
>
>
> Srilatha Jayanthi wrote:
>
>> Hi,
>>
>> Thanks for responding so fast. I don't know where the problem
>> is. First question is if you are running demo from mobiwan then what
>> is the use of ns-2.1b6? How is it recognizing the ns binary. Iam
>> using bash shell to run this script. When I tried to run the script
>> in the mobiwan/demo/scripts it said too many parameters. Then I used
>> sh -x simple-mipv6.sh to run the script, now it is giving me this
>> error
>> simple-mipv6.tcl -mactrace OFF -NAM 1 -namfile -stop 1000
>> -tracefile
>> simple-mipv6.sh: simple-mipv6.tcl: execute permission denied
>> I think simple-mipv6.tcl has to be run using ns. When I went into
>> the ns-allinone-2.1b6/bin and tried to run simple-mipv6.tcl then it
>> is giving me another set of errors that it couldn't read the source
>> file of timer.tcl. I checked the syntax, it is the same. Please help
>> me. I have to show this demo.
>>
>> Srilatha Jayanthi
>>
>>
>> Alex Hamidian wrote:
>>
>> > Hi!
>> >
>> > In the scripts directory (mobiwan/demo/scripts) you have to type:
>> > ./simple-mipv6.sh (without ns) if you wanna run that demo.
>> > If you already do that; tell me what it complains about. Also see
>> > if the path to timer.tcl (in simple-mipv6.tcl) is correct (probably
>> > it is).
>> >
>> > Good luck
>> > Ali Hamidian
>> >
>> >
>> > Srilatha Jayanthi wrote:
>> >
>> >> Hi,
>> >>
>> >> Thanks for the help. Am unable to run the demos. Can you
>> >> please tell me how to run the demos. I changed the set
>> >> NS=ns-mipv6 to ns. but still the scripts are not working do I
>> >> have give any paths before i run
>> >> the scripts. Please help me.
>> >>
>> >> Srilatha Jayanthi
>> >>
>> >>
>> >> Alex Hamidian wrote:
>> >>
>> >>
>> >> > Hello again Srilatha!
>> >> > I managed to write something to you - see my attachment. I hope
>> >> > it
>> >> > helps. I tried to write it in details. You're welcome to send
>> >> > me emails
>> >> > if something won't be clear.
>> >> > By the way, I use Linux Red Hat so we might get different
>> >> > errors.
>> >> > I you havn't already installed ns-2.1b6 take a look at this
>> >> > page if you
>> >> > get error: http://www.comp.leeds.ac.uk/nuk/Research/Log/
>> >> >
>> >> > Good luck and keep me informed
>> >> > Ali Hamidian
>> >> >
>> >> > Srilatha Jayanthi wrote:
>> >> >
>> >> >
>> >> >> Hi,
>> >> >>
>> >> >> It is great to know that you have managed to implement
>> >> >> mobiwan. I
>> >> >> want to know how you succeded in implementing Mobiwan. I have
>> >> >> been
>> >> >> trying to implement since a long time. Please take your time
>> >> >> and reply
>> >> >> to my email. I will appreciate if you do this favor for me.
>> >> >>
>> >> >> Thanks
>> >> >> Srilatha Jayanthi
>> >> >>
>> >> >>
>> >> >
>> >> > ------------------------------------------------------------------------
>> >> > ALEX HAMIDIAN INSTALLING MOBIWAN
>> >> > ==============================================================================
>> >> >
>> >> > MobiWan works only with ns-2.1b6!
>> >> >
>> >> > 1. Install ns-allinone-2.1b6
>> >> > 2. Copy and replace all the files (not the tcl directory) from
>> >> > directory
>> >> > /mobiwan/ns-2/src to directory /ns-allinone-2.1b6/ns-2.1b6
>> >> > 3. Copy and replace all the files from directory
>> >> > /mobiwan/ns-2/src/tcl/lib to
>> >> > directory /ns-allinone-2.1b6/ns-2.1b6/tcl/lib
>> >> > 4. Copy the files myconfig and Makefile.in from directory
>> >> > /mobiwan/ns-2/ns-mipv6 to directory
>> >> > /ns-allinone-2.1b6/ns-2.1b6
>> >> > 5. Open the file /ns-allinone-2.1b6/ns-2.1b6/tcl/lib/ns-lib.tcl
>> >> > and put
>> >> > source ns-local-lib.tcl in the end of the file
>> >> > If this is already written there send me an
>> >> > email.
>> >> > 6. Go to the directory /ns-allinone-2.1b6/ns-2.1b6 and open the
>> >> > file myconfig
>> >> > 7. Put the paths
>> >> > to your directories /ns-allinone-2.1b6,
>> >> > /ns-allinone-2.1b6/tcl8.0.4 and /ns-allinone-2.1b6/tk8.0.4
>> >> > for example after
>> >> > the line NS=ns-$VERSION
>> >> >
>> >> > For example in my case:
>> >> > NSALL=/home/alexh/ns/ns-allinone-2.1b6
>> >> > TCL=/home/alexh/ns/ns-allinone-2.1b6/tcl8.0.4
>> >> > TK=/home/alexh/ns/ns-allinone-2.1b6/tk8.0.4
>> >> > 8. Check the versions of otcl and tclcl in the lines
>> >> > ./configure --prefix=$NSALL --exec_prefix=$NSALL
>> >> > --with-otcl=$NSALL/otcl-1.0 a5
>> >> > --with-tclcl=$NSALL/tclcl-1.0b9 --with-tcl=$TCL --with-tk=$TK
>> >> > --disable-s tatic || die "$NS configuration failed! Exiting
>> >> > ..."
>> >> > 9. Go to the directory /ns-allinone-2.1b6/ns-2.1b6 and type:
>> >> > ./myconfig
>> >> >
>> >> > It should compile now but complain about nam. Then send me an
>> >> > email.
>> >> >
>> >>
>> >>
--------------9C910E7B415ED52C593C5B48
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<p> Thanks for your help. But you are not getting my problem.
I know typing ./simple-mipv6.sh is (almost) equal to typing ns simple-mipv6.tcl.
My problem is when I type in ./simple-mipv6.sh it is giving me an error
"setenv: Too many arguments." When i tried to debug the script I got the
following error:
<br>sh -x simple-mipv6.sh
<br>+ set NS = ns
<br>+ set OUTDIR=.tmp
<br>+ echo Output in temporary directory
<br>Output in temporary directory
<br>+ [ -d ]
<br>+ mkdir
<br>mkdir: Failed to make directory ""; No such file or directory
<br>+ set NAMF={}/out.nam
<br>+ set TRACEF={}/out.tr
<br>+ set INFOF={}/out.info
<br>+ simple-mipv6.tcl -mactrace OFF -NAM 1 -namfile -stop 1000 -tracefile
<br>simple-mipv6.sh: simple-mipv6.tcl: execute permission denied
<p><b><u>When I tried to run simple-mipv6.tcl I got the following error:</u></b>
<br>ns simple-mipv6.tcl
<br>* Command Line is:
<p>can't read "opt(tracefile)": no such element in array
<br> while executing
<br>"exec rm -f $opt(tracefile)"
<br> (procedure "main" line 17)
<br> invoked from within
<br>"main"
<br> (file "simple-mipv6.tcl" line 137)
<p>Please help me. I don't know where the problem is.
<p>Srilatha Jayanthi
<br>
<p>Alex Hamidian wrote:
<blockquote TYPE=CITE>Hi,
<br>First of all; please send this also to the ns mailing list - maybe
it will help others in the future.
<p>1.
<br>If you've given the paths to the directories correctly (in ~/.bashrc)
it doesn't matter from where you run your tcl scripts. But if you havn't
done that you probably have to run it from a specific directory. I'm not
an expert on Linux (nor ns) since I've only used it (them) for two months.
<br>I told you not to type ns in front of simple-mipv6.sh because it will
do that automatically. Take a look at the file simple-mipv6.sh. As you
can see from the last line
<p><b># Launch simulation</b>
<br><b> $NS simple-mipv6.tcl -mactrace OFF -NAM 1 -namfile
$NAMF -stop 1000 -tracefile $TRACEF</b>
<p>ns will be run. In other words: typing <u>./simple-mipv6.sh </u>is (almost)
equal to typing <u>ns simple-mipv6.tcl</u>.
<br>You just have to change from $NS = ns-mipv6 to $NS = ns (which you
said you already had done!).
<br>
<p>2.
<br>The timer.tcl problem is easy to fix. You have to change the path to
timer.tcl in simple-mipv6.tcl (around line 88).
<br>Now it says something like: source
../../ns-2/ns-mipv6/tcl/mobility/timer.tcl
<br>Change it to:
source <your path>/ns-2/ns-mipv6/tcl/mobility/timer.tcl
<br>For example in my case it is: source ~/ns/mobiwan/ns-2/ns-mipv6/tcl/mobility/timer.tcl
<p>By the way: Please tell me if the "installation guide" did help or not
and tell me what was good and what was bad and if something was wrong.
<br>Good luck
<br>Ali Hamidian
<br>
<br>
<br>
<p>Srilatha Jayanthi wrote:
<blockquote type="cite" cite="mid:3CB59EE8.B5134B09@memphis.edu">Hi,
<p> Thanks for responding so fast. I don't know
where the problem is. First question is if you are running demo from mobiwan
then what is the use of ns-2.1b6? How is it recognizing the ns binary.
Iam using bash shell to run this script. When I tried to run the script
in the mobiwan/demo/scripts it said too many parameters. Then I used sh
-x simple-mipv6.sh to run the script, now it is giving me this error
<br> simple-mipv6.tcl -mactrace OFF -NAM 1 -namfile -stop 1000 -tracefile
<br>simple-mipv6.sh: simple-mipv6.tcl: execute permission denied
<br>I think simple-mipv6.tcl has to be run using ns. When I went into the
ns-allinone-2.1b6/bin and tried to run simple-mipv6.tcl then it is giving
me another set of errors that it couldn't read the source file of timer.tcl.
I checked the syntax, it is the same. Please help me. I have to show this
demo.
<p>Srilatha Jayanthi
<br>
<p>Alex Hamidian wrote:
<blockquote type="CITE">Hi!
<p>In the scripts directory (mobiwan/demo/scripts) you have to type: <b>./simple-mipv6.sh</b>
(without ns) if you wanna run that demo.
<br>If you already do that; tell me what it complains about. Also see if
the path to timer.tcl (in simple-mipv6.tcl) is correct (probably it is).
<p>Good luck
<br>Ali Hamidian
<br>
<p>Srilatha Jayanthi wrote:
<blockquote type="cite" cite="mid:3CB52CE3.60C7D42B@memphis.edu">
<pre wrap="">Hi,
Thanks for the help. Am unable to run the demos. Can you please tell me how to run the demos. I changed the set NS=ns-mipv6 to ns. but still the scripts are not working do I have give any paths before i run
the scripts. Please help me.
Srilatha Jayanthi
Alex Hamidian wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello again Srilatha!
I managed to write something to you - see my attachment. I hope it
helps. I tried to write it in details. You're welcome to send me emails
if something won't be clear.
By the way, I use Linux Red Hat so we might get different errors.
I you havn't already installed ns-2.1b6 take a look at this page if you
get error: <a href="http://www.comp.leeds.ac.uk/nuk/Research/Log/" class="moz-txt-link-freetext">http://www.comp.leeds.ac.uk/nuk/Research/Log/
</a>Good luck and keep me informed
Ali Hamidian
Srilatha Jayanthi wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
It is great to know that you have managed to implement mobiwan. I
want to know how you succeded in implementing Mobiwan. I have been
trying to implement since a long time. Please take your time and reply
to my email. I will appreciate if you do this favor for me.
Thanks
Srilatha Jayanthi
</pre>
</blockquote>
<pre wrap=""> ------------------------------------------------------------------------
ALEX HAMIDIAN INSTALLING MOBIWAN
==============================================================================
MobiWan works only with ns-2.1b6!
1. Install ns-allinone-2.1b6
2. Copy and replace all the files (not the tcl directory) from directory
/mobiwan/ns-2/src to directory /ns-allinone-2.1b6/ns-2.1b6
3. Copy and replace all the files from directory /mobiwan/ns-2/src/tcl/lib to
directory /ns-allinone-2.1b6/ns-2.1b6/tcl/lib
4. Copy the files myconfig and Makefile.in from directory
/mobiwan/ns-2/ns-mipv6 to directory /ns-allinone-2.1b6/ns-2.1b6
5. Open the file /ns-allinone-2.1b6/ns-2.1b6/tcl/lib/ns-lib.tcl and put
source ns-local-lib.tcl in the end of the file
If this is already written there send me an
email.
6. Go to the directory /ns-allinone-2.1b6/ns-2.1b6 and open the file myconfig
7. Put the paths
to your directories /ns-allinone-2.1b6,
/ns-allinone-2.1b6/tcl8.0.4 and /ns-allinone-2.1b6/tk8.0.4 for example after
the line NS=ns-$VERSION
For example in my case:
NSALL=/home/alexh/ns/ns-allinone-2.1b6
TCL=/home/alexh/ns/ns-allinone-2.1b6/tcl8.0.4
TK=/home/alexh/ns/ns-allinone-2.1b6/tk8.0.4
8. Check the versions of otcl and tclcl in the lines
./configure --prefix=$NSALL --exec_prefix=$NSALL --with-otcl=$NSALL/otcl-1.0 a5 --with-tclcl=$NSALL/tclcl-1.0b9 --with-tcl=$TCL --with-tk=$TK --disable-s tatic || die "$NS configuration failed! Exiting ..."
9. Go to the directory /ns-allinone-2.1b6/ns-2.1b6 and type: ./myconfig
It should compile now but complain about nam. Then send me an email.</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</html>
--------------9C910E7B415ED52C593C5B48--