ns3安装过程中./build.py后报错”util.CommandError: Command [‘/usr/bin/python3‘, ‘ns3‘, ‘configure‘

问题描述:./build.py后报错”“/usr/lib/python3.10/os.py”, line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: ‘/home/ann/ns-allinone-3.37/ns-3.37/cmake-cache’
Finished executing the following commands:
mkdir cmake-cache”以及”util.CommandError: Command [‘/usr/bin/python3’, ‘ns3’, ‘configure’, ‘–enable-examples’, ‘–enable-tests’] exited with code 1”
解决:(1)ns3下载改为:wget https://www.nsnam.org/release/ns-allinone-3.37.tar.bz2
(2)为虚拟机磁盘分配更多空间,磁盘扩容参考:http://t.csdnimg.cn/wkVTB
最后,再次尝试编译成功。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值