Installing ns-2.35 on Mountain Lion, Mavericks, Yosemite and El Capitan (OS X 10.8/10.9/10.10/10.11)

Here i will provide step by step procedure for you to install ns-2.35 on mac OS X 10.8/9/10 which i successfully installed on my mac (fully tested by me and its working)


Brain Adamson(for great patch) Henrique Zelak Leite Bastos for the right help.APPLE for Mac OS X.(the best a dev. can get)
Step 1. Software Requirements (Pre-requisites).

Download ns-2.35 from through this tutorial to install command line tools via terminal XQuartz from (this installs X11 libraries) install and reboot/logout .
Step 2. Choose install directory.

Place the downloaded ns-allione-2.35.tar.gz file in the location you want to install it. 
Step 3. Extract ns files.

Go to location where you have put your downloaded .tar.gz file and run tar zxvf ns-allinone-2.35.tar.gz

Tutorial to implement protoname in ns2.35

This is an Implementation tutorial of new manet(Mobile Ad-hoc NETworks) unicast protocol name protoname.

The whole credit goes to Francisco J. Ros and Pedro M. Ruiz for their beautiful work and excellent explanation they provide. The link to their work is below. It contains a PDF file also which explains you in detail and I recommend you to go through it once.

List of files to be modified

~/ns-allinone-2.35/ns-2.35/common/packet.h~/ns-allinone-2.35/ns-2.35/trace/cmu-trace.h~/ns-allinone-2.35/ns-2.35/trace/ ~/ns-allinone-2.35/ns-2.35/tcl/lib/ns-lib.tcl ~/ns-allinone-2.35/ns-2.35/queue/

** Note: Text in red is the part that is to be added or modified in given file and location and purple colour denotes the terminal commands.

** Note: mod stands for modification.

** Note: Line number is approx and is provided for your convenience. Please check the methods below and abov…

Installing ns-2.35 in Ubuntu 12.04, 12.10, 13.04, 13.10 and 14.04

Tutorial to install ns-2.35 on Ubuntu 12.04/10 and 13.04/10 please follow the tutorial step by step

Step 1:

Download NS-2.35 (

Step 2:

place this file ns-allinone-2.35.tar.gz in any folder you like (recommended is /home/loginname) 

Step 3:

Run this command in terminal
( first go to the directory where you have put you ns-allinone-2.35.tar.gz file. )

tar zxvf ns-allinone-2.35.tar.gz(extracts the .tar.gz files content to a folder in the same directory name ns-allinone-2.35)

Step 4:

Run these command in terminal (Requires Internet)

sudo apt-get update( means you need to keep your pc sources updated )
sudo apt-get install build-essential autoconf automake libxmu-dev (These are essential library files and size is around 17 MB)

Step 5:

Run this command in terminal 

cd ns-allinone-2.35(get inside the ns directory)

Step 6: 


note:- the only error I got was something related to linkstate/ls.h.

So to …