[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tcldebug?
Hello,
Thanks, Thanks and Thanks..
Now, it is OK. I think the previous problem is I did not "make
distclean" because I do not know well what files I should clean when I
re-configure ns.
Best Wishes,
Sun Kai
On Mon, 11 Oct 1999 00:13:52 +0100 (BST) Lloyd Wood
<[email protected]> wrote:
> On Sun, 10 Oct 1999, K Sun wrote:
>
> > I tried it. However, it seems I have not successfully installed my
> > tcldebug well. I do not know how to test it. What I did is just adding
> > a line "debug 1" in a tcl file under "./tcl/lib" of ns. I do not want
> > to trace a example; I try to debug ns-rsvp.tcl of RSVP/ns.
> > I installed ns-allinone-2.1b5 in my RedHat. It should not be
> > prebuilt binary. I configue ns with "./configure --enable-debug
> > --with-tcldebug=$HOME/ns-allinone-2.1b5/tcl-debug-1.9" and "make".
> > However, when I try an example, I still meet the error informaiton:
> > "...
> >
> > warning: Script debugging disabled. Reconfigure with --with-tcldebug, and recompile.
> >
> > .."
> >
> > I downloaded tcl-debug-1.9 respectively, then "configure" and
> > "make" it.
> >
> > Could you please give me further help?
>
> Try doing
>
> make distclean
>
> first, as discussed previously in the archives. Check if you have a
> libtcldbg.a in the tcl-debug directory (i.e. tcl-debug was built
> correctly), and not elsewhere on your path.
>
> Configure detects the tcl-debug package using Dbg.h, so if you have
> some other Dbg.h elsewhere, it may get confused - but since you're
> specifying location that shouldn't be a problem.
>
> See similar May 1999 discussion.
>
> L.
>
>
> > Many thanks,
> > Sun Kai
> >
> >
> >
> > On Sun, 10 Oct 1999 23:11:47 +0100 (BST) Lloyd Wood
> > <[email protected]> wrote:
> >
> > > On Sun, 10 Oct 1999, K Sun wrote:
> > >
> > > > Thanks for your message.
> > > > However, how to reconfiguer ns? (how to make correciton on the lines I
> > > > lists?)
> > >
> > > You do not correct the lines.
> > >
> > > You repeat the install process that you carried out to build ns in the
> > > first place, when you did configure and make. For me that would be
> > >
> > > configure --disable-static --with-tcl=$HOME/ns/tcl8.0 \
> > > --with-tcl-ver=8.0 --with- otcl=$HOME/ns/otcl \
> > > --with-tclcl=$HOME/ns/tclcl --with-perl=/usr/local/bin --with \
> > > -tk=$HOME/ns/tk8.0 --with-tk-ver=8.0 --with-dmalloc=$HOME/ns/dmalloc \
> > > --enable-debug --with-tcldebug=$HOME/ns/tcl-debug
> > > make
> > >
> > > alter to suit.
> > >
> > > (I presume you're not using a prebuilt binary, and that a prebuilt
> > > binary would have tcldebug built in as a matter of course.)
> > >
> > > configure -help
> > > tells you as much.
> > >
> > > L.
> > >
> > > > The directory of "tcldebugger" is in a parallel directory to "ns-2.1b5"
> > > > (ns directory).
> > > >
> > > > I am looking forward to more instruction.
> > > >
> > > > Thanks again,
> > > >
> > > > Sun Kai
> > > >
> > > > On Sun, 10 Oct 1999 22:58:45 +0100 (BST) Lloyd Wood
> > > > <[email protected]> wrote:
> > > >
> > > > > On Sun, 10 Oct 1999, K Sun wrote:
> > > > >
> > > > > > I would like to use tcldebug. I have downloaded, uncompressed,
> > > > > > "configure" and "make" it with in a parallel directory to ns-2.
> > > > > > However, I do not know how to run it.
> > > > > > It seems I should added "debug 1" in an appropriate place of a tcl
> > > > > > file first. However, everytime, when I run ns, it always replies that I
> > > > > > should define -with-tcldebug and recomplie ns.
> > > > >
> > > > > And that's exactly what you should do. Reconfigure ns and recompile so
> > > > > that ns can include the tcl-debug library in itself.
> > > > >
> > > > > L.
> > > > >
> > > > > > I have checked the "configure" file of ns. The related lines are:
> > > > > > ...
> > > > > > ac_help="$ac_help
> > > > > > --with-tcldebug=path specify a pathname for the tcl debugger (path=no disables the debugger)"
> > > > > > ..
> > > > > > I do not know whether I should make correction on it. If I should,
> > > > > > how should I correct it?
> > >
> > > <[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>
> >
> >
> >
> >
>
> <[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>