[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running ns-2.1b1



I recently istalled ns-2.1b1 on a NetBSD/i386 and encountered the 
same problem. I found that the problem was in the Makefile:

	TCLSH   = tclsh

The reason for the problem was that ns couldn't find tclsh. I solved this by 
instead putting the whole path in the Makefile:

	TCLSH   = /usr/local/tcl7.6pl2/bin/tclsh7.6

I hope this can solve your problem!

Regards, 

Malin Flodin

> Dear ns-users,
> 
> I have compiled and installed ns-2.1b1 with gcc2.7.2.2 and libg++2.7.2 for
> a second time. But I stil have the error of the following when I run the
> test: ./ns test-suite.tcl tahoe1. I will be grateful if you can help me
> solve the problem.
> 
> %% invalid command name "Simulator"
> %%     while executing
> %% "Simulator create _o2 "
> %%     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 Simulator"
> %%     invoked from within
> %% "set ns_ [new Simulator]..."
> %%     (procedure "_o1" line 3)
> %%     invoked from within
> %% "$self next"
> %%     (procedure "_o1" line 6)
> %%     invoked from within
> %% "_o1 init {}"
> %%     invoked from within
> %% "Test/tahoe1 create _o1 {}"
> %%     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 Test/$test $topo"
> %%     invoked from within
> %% "set t [new Test/$test $topo]..."
> %%     (procedure "TestSuite" line 40)
> %%     invoked from within
> %% "TestSuite runTest"
> %%     (file "test-suite.tcl" line 1115)
> 
> I will be looking forward to receiving any suggestions from you. Thank you
> in advance.
> 
> Sincerely,
> 
> Deniz GURKAN
> e-mail: [email protected]  URL: http://www.ee.bilkent.edu.tr/~deniz/
>