Minimal requirements for c++ | release
apt-get install gcc g++ python
-
Problem | Using 14.04LTS release needs to upgrade gcc-4.9 versions.
Solution | https://askubuntu.com/questions/466651/how-do-i-use-the-latest-gcc-on-ubuntu?answertab=votes#tab-top
Minimal requirements for python | release
apt-get install gcc g++ python python-dev
Minimal requirements for python | development
apt-get install mercurial python-setuptools git
Netanim animator
apt-get install qt5-default
ns3-pyviz visualizer
apt-get install python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev ipython
MPI-based distributed emulation
apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev
bake build tool
apt-get install autoconf cvs bzr unrar
Debugging
apt-get install gdb valgrind
utils/check-style.py code style check program
apt-get install uncrustify
Doxgen and related inline documentation
apt-get install doxygen graphviz imagemagick apt-get install texlive texlive-extra-utils texlive-latex-extra texlive-font-utils texlive-lang-portuguese dvipng
Ns-3 manual and tutorial are written in reStructuredText for Sphinx
apt-get install python-sphinx dia
( Check if Sphinx version >=1.12 using sphinx-build --version)
GNU Scientific Library
apt-get install gsl-bin libgsl2 libgsl-dev
-
Problem | E:Unable to locate packge libgsl2 & E: Unable to locate package libgsl-dev
Solution | sudo apt-get install gsl-bin libgsl0-dev libgsl0ldbl
Network Simulation Cradle
apt-get install flex bison libfl-dev
Read pcap packet traces
apt-get install tcpdump
Databases support for statistics framework
apt-get install sqlite sqlite3 libsqlite3-dev
Xml-based version of the config store
apt-get install libxml2 libxml2-dev
Support for generating modified python binding
apt-get install cmake libc6-dev libc6-dev-i386 libclang-dev pip install cxxfilt
A GTK-based configuration system
apt-get install libgtk2.0-0 libgtk2.0-dev
To experiment with virtual machines and ns-3
apt-get install vtun lxc
Support for openflow module
apt-get install libboost-signals-dev libboost-filesystem-dev
--------------------------------------------------------------------------------------
Installation with Bake
Download Bake using Mercurial
hg clone http://code.nsnam.org/bake
add bake to your path
export BAKE_HOME=`pwd`/bake export PATH=$PATH:$BAKE_HOME export PYTHONPATH=$PYTHONPATH:$BAKE_HOME
To find out what is missing in your system and may be needed for installing ns-3
bake.py check
-
Problem | python bake.py check
>7z data compression utility - is missing
Solution | sudo apt-get install cvs unrar p7zip-full cmake dh-autoreconf bzr
Before downloading and building ns-3
bake.py configure -e ns-3.26
To see the modules it has added
bake.py show
To download the modules, build and install
bake.py deploy
Download the selected modules, all their dependencies and build ns-3 with all these independent modules
bake.py download bake.py build
-
Problem | When bake.py deploy or bake.py build, show the below problem
>>Building castxml - Problem
> Problem: Optional dependency, module "castxml" failed
This may reduce the functionality of the final build.
However, bake will continue since "castxml" is not an essential dependancy.
For more information call bake with -v or -vvv, for full verbose mode.
Solution | None
-
Problem | When bake.py deploy or bake.py build, show the below problem
>>Building pybindgen-0.17.0.post57+nga6376f2 - Problem
> Problem: Optional dependency, module "pybindgen-0.17.0.post57+nga6376f2" failed
This may reduce the functionality of the final build.
However, bake will continue since "pybindgen-0.17.0.post57+nga6376f2" is not an essential dependancy.
For more information call bake with -v or -vvv, for full verbose mode.
Solution | pip install -U setuptoools
(I used bake.py show to see, I found that setuptools is optional false, I'm not sure that if there's no setuptools modules in my ubuntu, so i install it.)
留言列表