NetworkSimulator (NS2) Install script for MacOS X 10.11
# Requirements
Latest version of Xcode.
Latest version of Xquartz. (It can be downloaded from this link : http://xquartz.macosforge.org/landing/)
You will have re-login to enable it.
# Installation
git clone --depth 1 https://github.com/poz1/NS2
cd NS2
chmod +x install.sh && ./install.sh
Restart terminal.
It will take a while to download and compile the source. Once done, try running ns or nam for running ns shell or nam.
Script based on: https://github.com/dhruvvyas90/ns-install-osx.git
Pacthes made by: https://github.com/aemreunal/ns-allinone-2.35-Mac-OS-10.9-install-patch