NS 2.35在运行MDART协议时出现分段故障(核心转储)



当我在NS 2.35中运行MDART路由协议tcl脚本时,它说:

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. 
num_nodes is set 16
INITIALIZE THE LIST xListHead
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0
SORTING LISTS ...DONE!
Segmentation fault (core dumped)

模拟结束时间假定在205s结束,但当运行动画时,模拟在8s结束。为什么?感谢

ns在/usr/bin/tclsh8.6中找到了正确版本的tclsh但它似乎不再存在

tcl8.6:您应该使用;ns-2.35tcl8.5.10":它不会更改版本或位置。(除非你移动ns-alinone-2.35(。外部tcl8.6可以通过例如更新来更改。后来的版本往往会丢失一些文件,例如Debian/Ubuuntu中的文件。

示例https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing

$ tar xvf ns-allinone-2.35_gcc5.tar.gz     ## 2014 - 2017 update
$ cd ns-allinone-2.35/
$ export CC=gcc-4.8 CXX=g++-4.8 && ./install

分割故障

MDRT不能与当代操作系统一起使用。最新的是16个月前更新的Ubuntu 18.04.4。请看我的测试https://drive.google.com/drive/folders/1si2jA3lc-23lubVHb3tFbIAXfnhRfg5O?usp=sharing。。。。。CentOS 8失败,Ubuntu 20.04失败。等等;2021 OS";失败。

编辑:进一步的测试显示更新的Ubuntu 18.04失败了:MDART的最新Ubuntu版本是16.04。

注意1:Ubuntu 16.04nam软件包已损坏。请使用https://drive.google.com/file/d/0B7S255p3kFXNdmxzSmRzaVRWb28/view?usp=sharing→nam_1.15-10-ubuntu14-amd64.deb

注2:Ubuntu 16.04ns命令:sudo apt install ns2

注3:建筑物ns-alinone-2.35→四个随机Tk错误的情况后,最新的Ubuntu更新。可能的解决方案:使用ns-allinone-2.35_2021.tar.xzhttps://drive.google.com/file/d/167cP7hPnJGiNL3rK4Mxnh_-0t7_S8FTL/view?usp=sharing随着Tcl,Tk更新到8.5.17版本……还有三个选项可供额外的gcc/g++编译器试用https://drive.google.com/drive/folders/1xVEATaYAwqvseBzYxKDzJoZ4-Hc_XOJm?usp=sharing

export CC=gcc447 CXX=g++447 && ./install     ## can also be used with ns-allinone-2.35 version 2011
export CC=gcc48 CXX=g++48 && ./install
export CC=gcc54 CXX=g++54 && ./install

模拟时间:设置为最长时间。示例:设置set val(end) 1006.0将运行约6秒,并以:1000 simulation seconds……结束输出文本。。。。。。。时间是相对的。ns2是在90年代开发的,当时处理器的速度非常慢——奔腾1/奔腾2。。。不同的协议随着模拟时间的不同而表现不同。

最新更新