--- tags: ns3, centos,centos7,linux title: NS-3.25 on Centos 7 description: Install NS-3.25 with VLC module on a Centos 7 virtual machine GA: UA-167433668-1 image: https://wiki.centos.org/moin_static1910/common/centos.png --- # Installation: Centos 7 + NS3 # Install Centos 7 - Using: - VMWare Workstation Player 15 - quad-core, 4GB RAM, 40GB disk 1. minimal install 2. install gui [:link:](https://www.centos.org/forums/viewtopic.php?f=47&t=47088&start=10) ```sh yum groupinstall "X Window System" yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts unlink /etc/systemd/system/default.target ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target reboot ``` # Install NS-3.xx ## Dependencies - install gcc-c++ 4.9.2 [:link:](https://blog.csdn.net/tiandao2009/article/details/79693134) ```sh yum install centos-release-scl -y yum install devtoolset-3-toolchain -y scl enable devtoolset-3 bash ``` use `which gcc` and `gcc -v` to check gcc version - `yum -y install epel-release` to enable EPEL repo - follow official install guide ## Installation Official installation guide [:link:](https://www.nsnam.org/wiki/Installation) CSDN blogpost [:link:](https://blog.csdn.net/ll_xh/article/details/84287071) - download using mercurial ```sh mkdir repos cd repos hg clone http://code.nsnam.org/ns-3-allinone cd ns-3-allinone ./download.py -n ns-3.xx ./build.py ``` - install `pybindgen`: *(if downloaded using mercurial, this step might be unnecessary)* - `yum install python-pip` - `pip install pybindgen` - `pybindgen` version mismatch: - `vim bindings/python/wscript` - `REQUIRED_PYBINDGEN_VERSION = '0.19.0'` change to installed `pybindgen` version - waf configure (give `pybindgen` loc) ```sh ./waf configure --with-pybindgen=/path/to/pybindgen ``` To-do --- - [x] eclipse IDE - [x] how to log? - [x] choose what to log? - [x] read pcap using tcpdump - [ ] read pcap using wireshark - [x] read ascii dump - [ ] make graphs/operations on dump - [x] install VLC module - [ ] understand VLC module usage
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up