NS2问题解决

问题一:

 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. 

解决办法:

sudo apt install tclsh

问题二,在ns2中对/ns/ns-2.35中的makefile文件进行编译命令行出现一下情况:

/bin/sh: cannot create gen/ns_tcl.cc: Permission denied
error writing "stdout": broken pipe
    while executing
"puts "### tcl-expand.tcl: begin expanding $name""
    (procedure "expand_file" line 2)
    invoked from within
"expand_file [file tail $name]"
    ("foreach" body line 5)
    invoked from within
"foreach name $argv {
    set dirname [file dirname $name]
    if {$dirname != "."} {
       cd $dirname
       expand_file [file tail $name]
       cd $startupDir
    } else ..."
    (file "bin/tcl-expand.tcl" line 65)
make: *** [gen/ns_tcl.cc] error2
可能权限不够,无法对makefile文件进行编译。
进入root模式,在makefile文件的所在的文件夹下使用chmod 777 Makefile 命令来修改makefile权限,然后重新编译。
解决办法:
cd NS2/ns-allinone-2.35/ns-2.35
su root
chmod 777 Makefile
问题三,如何添加添加mUDP、mUdpSink和mTcpSink模块
解决方法:
https://www.cnblogs.com/helloWaston/p/4549735.html
https://blog.csdn.net/happyeveryday62/article/details/103335567
实验23问题解决
./setdest -v 1 -n 100 -p 100.0 -M 10.0 -t 100 -x 300 -y 300 > scen_100n_100p_10M_100t_300_300
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值