问题描述:./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
最后,再次尝试编译成功。
06-30
879
09-24
1万+
12-20
697