你是怎么安装成功的?我的仍然显示 ./install-bt Cannot find ns directory. Cannot find ns directory. please check if you untar the tar ball in the correct directory. please check if you untar the tar ball in the correct directory.
directory tree directory tree
|__ ns-allinone-2.xx --- ns-2.xx -- bluetooth -- ns-2.26 |__ ns-allinone-2.xx --- ns-2.xx -- bluetooth -- ns-2.26 | | |_ ns-2.1b9a | | |_ ns-2.1b9a | | |_ ... | | |_ ... | | |_ test | | |_ test | |_ common | |_ common | |_ ... | |_ ... |__ nam... |__ nam... |__ ... |__ ...
You should 'tar zxvf bt.xx.tgz' in the directory 'ns-2.xx' You should 'tar zxvf bt.xx.tgz' in the directory 'ns-2.xx'
You should run './install-bt' in the directory 'bluetooth' You should run './install-bt' in the directory 'bluetooth'
(_o10 cmd line 1) invoked from within "_o10 cmd rt AODV" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o10" line 2) (SplitObject unknown line 2) invoked from within "$node($i) rt AODV" ("for" body line 4) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node($i) [$ns node $i ] # $node($i) rt Manual $node($i) rt AODV $node($i) SchedAlgo DRR ..." (file "pico.tcl" line 7)
5 則留言:
你是怎么安装成功的?我的仍然显示
./install-bt
Cannot find ns directory. Cannot find ns directory.
please check if you untar the tar ball in the correct directory. please check if you untar the tar ball in the correct directory.
directory tree directory tree
|__ ns-allinone-2.xx --- ns-2.xx -- bluetooth -- ns-2.26 |__ ns-allinone-2.xx --- ns-2.xx -- bluetooth -- ns-2.26
| | |_ ns-2.1b9a | | |_ ns-2.1b9a
| | |_ ... | | |_ ...
| | |_ test | | |_ test
| |_ common | |_ common
| |_ ... | |_ ...
|__ nam... |__ nam...
|__ ... |__ ...
You should 'tar zxvf bt.xx.tgz' in the directory 'ns-2.xx' You should 'tar zxvf bt.xx.tgz' in the directory 'ns-2.xx'
You should run './install-bt' in the directory 'bluetooth' You should run './install-bt' in the directory 'bluetooth'
你好,
我按照安装指示把ucbt-0.9.9.2a和NS2.30一起安装时,总是告诉我找不到NS目录,实在不知道问题出在哪。看见你安装成功了真的好高兴,你能告诉我你是怎么装的吗?
谢谢!
我是抓allinone的版本
ns-allinone-2.29這個資料夾裡面有個"ns-2.29資料夾"
然後把ucbt的解壓縮 放在那個ns-2.29裡面
路徑是長這個樣子
ns-allinone-2.29
|_ns-2.29
|_ucbt-0.9.9.2a
我安好后,在测试时,执行
ns pico.tcl不成功,出现:
(_o10 cmd line 1)
invoked from within
"_o10 cmd rt AODV"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o10" line 2)
(SplitObject unknown line 2)
invoked from within
"$node($i) rt AODV"
("for" body line 4)
invoked from within
"for {set i 0} {$i < $val(nn) } {incr i} {
set node($i) [$ns node $i ]
# $node($i) rt Manual
$node($i) rt AODV
$node($i) SchedAlgo DRR
..."
(file "pico.tcl" line 7)
这是什么问题?达人,帮下忙,谢谢了,
呃 其實我也不是高手 不知道是什麼問題 囧
你有改環境變數嗎?
你試試把你的tcl檔放進ns-allinone-2.29/bin裡面
檔案放進bin資料夾後 在終端機那邊也進去bin那裡
然後打./ns pico.tcl
如果這樣還是有錯誤訊息 那應該是沒裝好吧 @@"
張貼留言