Category Archives: ns2

NS-2 Notes : Installing ns2.35 on Mac OS X (Yosemite)

Network Simulator (or ns2 as we call it) is a powerful network simulator and widely used for various network simulation. Unfortunately, there’re not a lot of guides available how to install ns2 on latest Mac OS and even if they’re available, it has to be patched in order to make it run for Mac OS.

To simplify, steps, I’ve create a small bash scrip which does everything for you from downloading source to applying patches and making and installing paths as well.

Here are the steps.

  1. Clone the script from github. : git clone
  2. cd ns-install-osx
  3. chmod +x
  4. sudo ./

That’s it. Make sure you’re connected to internet. After installation, you may want to restart the terminal to make paths effective. Once restarted, use `ns` to see if it works. You can check if `nam` is working by typing `nam` on terminal.

Note : Please note that patches are not created by me and full credit for patch goes to original author (@aemreunal on github) . Independent patches are available on this link :