linux - 无效命令名称 "Agent/rtProto/OSPF"

标签 linux tcl patch ns2 ospf

我已经安装了 OSPF patch对于 ns2 并且它安装正确。现在,当我尝试使用命令 ns ospf0.tcl 运行同一补丁的 tcl 示例时,出现此错误:

(TCL) Creating simulator & trace files...
(TCL) Setting up nodes and links...
(TCL) Configuring traffic objects...
(TCL) Configuring routing protocol...
invalid command name "Agent/rtProto/OSPF"
while executing
"Agent/rtProto/OSPF set helloInterval 1"
(file "ospf0.tcl" line 132)

Here有人说 表示构建失败。 (或者您使用了错误的可执行文件“ns”。),但是补丁安装没有错误。我曾经在没有补丁和没有 OSPF 的情况下使用 ns 顺利运行 tcl 文件。我有 ubuntu 14.04ns2 2.35 并且应用了 10-ospf4ns2.34 补丁。任何想法怎么了?如果有人只是给我 nam 文件来模拟甚至跟踪文件,那也会非常有帮助。

最佳答案

NS-2.35 : 补丁 10-ospf4ns2.34-base.patch 将因 common/packet.h 失败。

请阅读帖子 #4 here ... 关于 » ospf_ns235.patch «

以下是您可以执行的操作:

Ubuntu 14.04 : $ sudo apt-get remove ns2
$ tar xvf ns-allinone-2.35_gcc482.tar.gz

https://drive.google.com/file/d/0B7S...ew?usp=sharing

$ cd ns-allinone-2.35/
$ patch -p0 < ospf_ns235.patch

https://drive.google.com/file/d/0B7S...ew?usp=sharing

$ ./install
$ cd ns-2.35/
$ sudo make install 
$ cp ns ns-ospf
$ sudo cp ns-ospf /usr/local/bin/
$ cd tcl/ex/ospf/
$ mkdir out_ospf0 out_ospf1 out_ospf2 out_ospf3 out_ospf4 out_ospf5 out_ospf6 out_ospf7 out_ospf8 out_ospf9
$ ns-ospf ospf0.tcl
.
.
$ ns-ospf ospf9.tcl

关于linux - 无效命令名称 "Agent/rtProto/OSPF",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28124846/

相关文章:

linux - Makefile 缺少分隔符

linux - AWS 亚马逊 Linux : how to upload files from local to/var/www/html?

shell - 期望检查字符串或根本没有输出

linux - 运行 packer build 时补丁变空。如何解决这个问题

android - 如何获取此 git 脚本制作的补丁列表?

linux - 如何增加内核内部的进程能力?

linux - Bash 代码,这是做什么的?

tcl - 出现错误时从命令行退出 Modelsim

string - Tcl 字符串转义

kubernetes - 如何在kubernetes集群上修补statefulset并设置imagePullPolicy