NS-3.29 allinone (Network Simulator) Step by Step installation guide on Ubuntu 18.04

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024
  • how To install NS3 on Ubuntu 18.04:
    Downloading and building NS-3.29 Using Bake. This repository provided by default in NS-3.29 allinone. we will go through a set of scripts to manage the download and build of the most commonly used NS-3 subsystems.
    Scripts :
    1. install requirements for C++
    sudo apt-get install gcc g++ python
    2. install requirements for Python
    sudo apt-get install gcc g++ python python-dev
    3. Install requirements for Python (development)
    sudo apt-get install mercurial python-setuptools git
    4. Install Netanim animator
    sudo apt-get install qt5-default
    5. Install Support for ns-3-pyviz visualizer, is based on GTK+ version 3, and requires these packages:
    sudo apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python-pygraphviz python3-gi python3-gi-cairo
    python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3
    6. Install Support for MPI-based distributed emulation
    sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev
    7. Install Support for bake build tool:
    sudo apt-get install autoconf cvs bzr unrar
    8. Install Debugging tool
    sudo apt-get install gdb valgrind
    9. Install Support for utils/check-style.py code style check program
    sudo apt-get install uncrustify
    10. download Doxygen and related inline documentation:
    sudo apt-get install doxygen graphviz imagemagick
    11. sudo apt-get install texlive texlive-extra-utils texlive-latex-extra texlive-font-utils texlive-lang-portuguese dvipng latexmk
    12. Download The ns-3 manual and tutorial
    sudo apt-get install python-sphinx dia
    13. Download GNU Scientific Library, support for more accurate WiFi error models.
    sudo apt-get install gsl-bin libgsl-dev
    14. Install The Network Simulation Cradle (nsc). requires the flex lexical analyzer and bison parser generator:
    sudo apt-get install flex bison libfl-dev
    15. To read pcap packet traces, install this tool:
    sudo apt-get install tcpdump
    16. Install Database support: for statistics framework
    sudo apt-get install sqlite sqlite3 libsqlite3-dev
    17. Install Xml-based version of the config store
    sudo apt-get install libxml2 libxml2-dev
    18. Install Support for generating modified python bindings
    sudo apt-get install cmake libc6-dev libc6-dev-i386 libclang-dev llvm-dev automake
    19. install pip for Python 3
    sudo apt install python-pip
    sudo pip install cxxfilt
    20. Install A GTK-based configuration system
    sudo apt-get install libgtk2.0-0 libgtk2.0-dev
    21. To experiment with virtual machines and ns-3, install this tool
    sudo apt-get install vtun lxc
    22. Install Support for openflow module
    sudo apt-get install libboost-signals-dev libboost-filesystem-dev
    23. Download the most recent copy of bake:
    Cd
    mkdir workspace
    cd workspace
    git clone gitlab.com/nsn...
    24. Configure target Version of NS3
    cd bake
    ./bake.py configure -e ns-allinone-3.29
    25. Check whether enough tools to download
    ./bake.py check
    26. Downloading NS-3
    ./bake.py download
    Building NS-3
    ./bake.py build
    27. Show various dependencies of the built packages
    ./bake.py show
    28. Testing NS-3
    cd source/ns-3.29
    ./test.py
    ./waf --run hello-simulator
    SSH Client:
    SecurCRT: www.vandyke.co...
    Putty: www.putty.org/
    Ubuntu ios: www.ubuntu.com...
    VMware Workstation: www.vmware.com...

ความคิดเห็น • 17