Install NS2 on Ubuntu
Installing NS2 in simple 5 steps
Step 2: Extract the tar.gz file downloaded into your home folder by right-clicking the tag.gz file
Step 3: Open terminal (Applications–>Accessories–>Terminal) and change the directory (using cd command) to the extracted folder and execute the following:
sudo apt-get install build-essential autoconf automake libxmu-dev
This will install the dependencies required to compile NS2 from the source.
The following command is used to compile the source.
It will take long time to compile all the required packages for ns to work…
Step 4: Setting Environmental Variables
Type in terminal:
and append the following text to the opened file (Please note that the path contains the path in my system, replace “venkat” in path with your username)
Step 5: Now, after editing the file, save and close it. Then in terminal type:
Try “ns” command, it shud go to the “%” prompt then it just means the installation was successful! Enjoy
Note: These steps have been tested and worked like breeze in Ubuntu and is expected work in all the debian based linux.
3.) http://www.isi.edu/nsnam/ns/ns-build.html (Might not be needing this, but just in case)