用了好久的3.26, 今天想试一下鸟枪换炮。尝试一下更新之后的。
首先,几乎所有问题都可以在官网文档处得到解决。
https://www.nsnam.org/releases/ns-3-38/documentation/
环境配置
配置conda
养成使用虚拟环境的好习惯。
新版本编译器耗时多很多。
./test 就很容易测试了。
pyviz 的安装
新版本的python绑定十分简单。只需要一句话就可以了。
python3 -m pip install --user cppyy
# 随后在configure时允许绑定就可以了
./ns3 configure --build-profile=debug --enable-examples --enable-tests --enable-python-bindings
-Werror
aqua安装
作者近期在GitHub上更新了项目对cmake的支持。
https://github.com/rmartin5/aqua-sim-ng
在编译时,如果发生报错就定位到报错的位置,把那一行话删掉就可以了。
碰到的问题
空间不足
额外分配一部分空间之后。
硬盘分区, 直接右键sda3 ,resize分区就可以了。