LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   i am trying to run SPAN protocol ns2 in Cygwin in Windows 10. And i got error. (https://www.linuxquestions.org/questions/linux-distributions-5/i-am-trying-to-run-span-protocol-ns2-in-cygwin-in-windows-10-and-i-got-error-4175662993/)

phyotay3 10-22-2019 08:27 PM

i am trying to run SPAN protocol ns2 in Cygwin in Windows 10. And i got error.
 
Code:

$ ns run-2Mb.tcl                                                                                                        ******: no errormodel specified.
couldn't read file "tcl/lib/ns-mobilenode.tcl": no such file or directory
    while executing
"source.orig tcl/lib/ns-mobilenode.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig[list $fileName]"
    invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
    (procedure "source" line 8)
    invoked from within
"source tcl/lib/ns-mobilenode.tcl"
    (file "run-2Mb.tcl" line 194)


pls reply.

berndbausch 10-22-2019 10:01 PM

Quote:

Originally Posted by phyotay3 (Post 6049797)
couldn't read file "tcl/lib/ns-mobilenode.tcl": no such file or directory

This file is missing. I would google it.
Quote:

pls reply.
What is the question?

EDIT: Somebody had the same problem and solved it: https://www.linuxquestions.org/quest...errors-931774/

phyotay3 10-23-2019 12:05 AM

2 Attachment(s)
Quote:

Originally Posted by berndbausch (Post 6049817)
This file is missing. I would google it.

What is the question?

EDIT: Somebody had the same problem and solved it: https://www.linuxquestions.org/quest...errors-931774/

USER@DESKTOP-ME30TBI /home/noureddine/ns-allinone-2.35-RC7/ns-2.35/tcl/ex
$ sh run-2Mb.tcl
run-2Mb.tcl: line 4: syntax error near unexpected token `('
run-2Mb.tcl: line 4: `set opt(chan) Channel/WirelessChannel'


USER@DESKTOP-ME30TBI /home/noureddine/ns-allinone-2.35-RC7/ns-2.35/tcl/lib
$ sh ns-mobilenode.tcl
ns-mobilenode.tcl: line 44: ARPTable: command not found
ns-mobilenode.tcl: line 45: next: command not found
ns-mobilenode.tcl: line 46: syntax error near unexpected token `}'
ns-mobilenode.tcl: line 46: `}'

i dont know what to do.i am so confused.Can u explain me?

Regards
phyotay3

ehartman 10-23-2019 12:26 AM

Quote:

Originally Posted by phyotay3 (Post 6049840)
$ sh run-2Mb.tcl
run-2Mb.tcl: line 4: syntax error near unexpected token `('
run-2Mb.tcl: line 4: `set opt(channel) Channel/WirelessChannel'

$ sh ns-mobilenode.tcl

You cannot run a tcl (Task Control Language) file through sh, you must install and use "tclsh" for those:
Quote:

Tcl, developed by Dr. John Ousterhout, is a simple to use text-based script language with many built-in features which make it especially nice for writing interactive scripts.
How to do that in Cygwin I wouldn't know, the above quote is from a real linux distro (package for Slackware, to be exact).

phyotay3 10-23-2019 04:54 AM

thanks sir


All times are GMT -5. The time now is 01:43 AM.