[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: ns not working after recompiling, tclsh8.0 not found
Hi Anurag,
I received the same error before. What I did was to add in the path of
tclsh8.0 (../tclbox/bin/tclsh8.0 if you are using ns-allinone) in
..../ns-2/Makefile line 41 TCLSH = tclsh8.0
>From my understanding if you changed something in .../ns-2/tcl/lib/,
tclsh8.0 would be invoked. It is used to generate the file ns_tcl.cc in
..../ns-2/gen/ . If tclsh8.0 was not found, the ns_tcl.cc generated would
not be correct. But since ns_tcl.cc and ns_tcl.o already exist and nothing
else in .../ns-2/tcl/lib has changed, that's why your second compile did not
give any error. So, you have to remove ns_tcl.cc and ns_tcl.o before you
type "make" again.
Hope this helps.
Fion
> ----------
> From: Anurag
> Sent: Tuesday, March 9, 1999 11:53 PM
> To: 'NS users mailing list'
> Subject: ns not working after recompiling, tclsh8.0 not found
>
> Hi
>
> I recompiled ns after some modifications (added a new type of queue) but
> it has stoped working after that.
>
> I did 'make depend'
>
> it gave mesage
> emulate/net-pcap.cc:60: pcap.h: No such file or directory
> emulate/arp.cc:50: net/ethernet.h: No such file or directory
> I assume these files are not needed.
>
> after that i did 'make'. It seems to compile. After that even if i run a
> simple test, ns does not work, it is not able to get the new instance of
> the simulator.
> the error message is
>
> > ns test_red.tcl
> invalid command name "Simulator"
> while executing "Simulator create _o1 "
> invoked from within
> "catch "$className create $o $args" msg"
> (procedure "new" line 3)
> invoked from within
> "new Simulator"
> (file "test_red.tcl" line 2)
>
>
> First time I recompiled, 'make' gave some error message
>
> tclsh8.0 not found ....
>
>
> but on second recompile there was no such error message.
>
> I do not understand what went worng.
>
> Please help.
>
> thanks
>
> with regards
> Anurag
>