Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Networking ns在/usr/bin/tclsh8.6中找到了正确的tclsh版本,但它没有';ns2似乎不再存在了_Networking_Ns2 - Fatal编程技术网

Networking ns在/usr/bin/tclsh8.6中找到了正确的tclsh版本,但它没有';ns2似乎不再存在了

Networking ns在/usr/bin/tclsh8.6中找到了正确的tclsh版本,但它没有';ns2似乎不再存在了,networking,ns2,Networking,Ns2,当我在Linux终端中写入$ns时,它显示以下消息: "When configured, ns found the right version of tclsh in /usr/bin/tclsh8.6 but it doesn't seem to be there anymore, so ns will fall back on running the first tclsh in your path. The wrong version of tclsh may break the

当我在Linux终端中写入$ns时,它显示以下消息:

"When configured, ns found the right version of tclsh in /usr/bin/tclsh8.6
but it doesn't seem to be there anymore, so ns will fall back on running the first tclsh in your path. The wrong version of tclsh may break the test suites. Reconfigure and rebuild ns if this is a problem. "
它是否会导致我的TCL文件执行出现问题?
我正在使用
ns-allinone-2.35

在我的网络课程中,我必须学习与NS2相关的东西。我们的老师告诉我们修改TCP.cc文件和其他相关的东西
如果终端中显示此信息,则说明ns2安装在错误的文件夹中
您必须重新安装ns2。否则,文件中的更新将不会生效
tcl文件不会引起任何问题

但是修改内部.cc文件(如tcp.cc、tcp_reno.cc)将不会生效

对于我来说,升级tclsh解决了这个问题

sudo apt install tclsh
我的Ubuntu版本是18.04 LTS

请查看 基本上,键入命令

sudo apt-get install tcl-dev tk-dev
它会很好的工作 安装完成后,键入

ns

然后下一行将是
%

当构建ns-allinone-2.35时,最好使用内部的{tcl,tk,otcl,tclcl},它不会被一般的操作系统包更新所改变。即,内部版本始终是正确的版本。。。建议:删除tcl-tk的操作系统开发版本(tcl-dev,tk-dev),并使用内部tcl-tk版本重建ns-allinone-2.35。