在 Windows 上安装并运行 ns3 模拟

问题描述 投票:0回答:1

我尝试按照文档在 WSL Ubuntu 上安装它,但构建失败(日志并不重要,但如果感兴趣,您可以检查https://pastebin.com/UTQdd4sW

我也尝试过 nixOS (wsl) 也没有运气

然后我认为使用 docker 镜像是最简单的,并尝试了这个 https://hub.docker.com/r/andreafulcheri/ns3 但得到

waf: command not found
当我跑步时
./waf --run hello-simulator
。 也不确定如何获得模拟的视觉效果(GUI)。

我更喜欢使用Python进行模拟。

现在我非常沮丧,任何有关分步指南(从安装到使用视觉模拟运行简单测试)的帮助都是值得赞赏的。 (请询问我是否遗漏了什么,我会更新OP)

windows docker windows-subsystem-for-linux ns-3
1个回答
0
投票

如果您使用带有 Waf 的 ns-3 版本 (<= ns-3.35), you should use use the compatible compilers tested with that version (check the release notes for that), or apply fixes manually.

您提到的docker镜像使用ns-3.38,它基于CMake。 从ns-3.36开始,您可以参考以下指南。 只需确保安装 g++/clang、python3、cmake 和 ninja/makefiles。

https://www.nsnam.org/docs/tutorial/html/quick-start.html

© www.soinside.com 2019 - 2024. All rights reserved.