1、下载 https://www.nsnam.org/releases/ns-3-29/download/,解压
2、build ,先放两个供参考:
官方教程是这个https://www.nsnam.org/docs/release/3.29/tutorial/singlehtml/index.html#building-ns3
还有前人的 https://www.jianshu.com/p/85ed25003e30
https://www.jianshu.com/p/2c6c38ebe936
(1)最重要的,先装以下包
sudo apt-get install gcc g++ Python
sudo apt-get install mercurial
sudo apt-get install bzr
sudo apt-get install gdb valgrind
sudo apt-get install gsl-bin libgs