[TOC]
参考资料 《NS3安装指南(英文)》
安装基本的APT包
sudo apt install g++ python3 cmake ninja-build git
安装optional的APT包
全量安装指令
sudo apt install ccache clang-format clang-tidy gdb valgrind tcpdump wireshark sqlite sqlite3 libsqlite3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools openmpi-bin openmpi-common openmpi-doc libopenmpi-dev doxygen graphviz imagemagick python3-sphinx dia imagemagick texlive dvipng latexmk texlive-extra-utils texlive-latex-extra texlive-font-utils libeigen3-dev gsl-bin libgsl-dev libgslcblas0 libxml2 libxml2-dev libgtk-3-dev lxc-utils lxc-templates vtun uml-utilities ebtables bridge-utils libxml2 libxml2-dev libboost-all-dev
分类安装
编译器缓存优化类
sudo apt install ccache
代码linting与Debug
sudo apt install clang-format clang-tidy gdb valgrind
pcap
sudo apt install tcpdump wireshark
Datebase
sudo apt install sqlite sqlite3 libsqlite3-dev
NetAnim
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools
MPI运算
sudo apt install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev
生成Doxygen
sudo apt install doxygen graphviz imagemagick
Sphinx文档
sudo apt install python3-sphinx dia imagemagick texlive dvipng latexmk texlive-extra-utils texlive-latex-extra texlive-font-utils
Eigen3
sudo apt install libeigen3-dev
GNU科学计算
sudo apt install gsl-bin libgsl-dev libgslcblas0
XML config 储存
sudo apt install libxml2 libxml2-dev
GTK config 储存
sudo apt install libgtk-3-dev
虚拟机模拟
sudo apt install lxc-utils lxc-templates vtun uml-utilities ebtables bridge-utils
Openflow支持
sudo apt install libxml2 libxml2-dev libboost-all-dev
Python-binding
相关安装(3.36版本以上)
python3 -m pip install --user cppyy==2.4.2
PyViz
可视化模块
sudo apt install gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3
./ns3 configure --enable-examples --enable-tests
./ns3 build
./ns3 clean