follow教程https://www.nsnam.org/wiki/index.php/Installation#Manual_installation
1.先安装依赖的包
- minimal requirements for C++ (release): This is the minimal set of packages needed to run ns-3 from a released tarball.
apt-get install gcc g++ python
- minimal requirements for Python (release): This is the minimal set of packages needed to work with Python bindings from a released tarball.
apt-get install gcc g++ python python-dev
- minimal requirements for Python (development): For use of ns-3-allinone repository (cloned from Mercurial), additional packages are needed to fetch and successfully install pybindgen:
apt-get install mercurial python-setuptools git
- Python API scanning support: cmake libc6-dev libc6-dev-i386 g++-multilib
- To rescan Python bindings requires gccxml and pygccxml, which are installed by bake. However, for Ubuntu 16.04, gccxml will not build without a patch and a bu