如何修复“无法读取文件”:在ns2

时间:2019-10-27 05:04:46

标签: ns2

我只是在上面设置了移动性的aodv.tcl。

当我要在终端中运行它时,我会遇到一些错误:

num_nodes设置为10 初始化列表xListHead

无法读取文件“”:没有这样的文件或目录
  在执行时 “ source.orig {}”。

我需要在哪里修复此错误?

这是针对我在校园内使用Network Simulation 2.35版本运行的项目的。我已经尝试过Linux Ubuntu 14.04 LTS。

#setting up the variables
set mobility [lindex $argv 0]              ;# Dynamic mobility file

#setting up mobility
source $mobility
$ns_ at 0.0 "$node_(1) color blue"
$node_(1) color "blue"
$ns_ at 0.0 "$node_(2) color orange"
$node_(2) color "blue"

0 个答案:

没有答案