Installing ns-allinone-2.27 at Ubuntu 10.04.4 Lucid February 9, 2014Posted by aghus in IT, Linux, NS-2.
We managed to get ns-2.27 allinone working successfully under Ubuntu GNU/Linux 10.04 LTS. You need a 32 bit (NOT 64) installation of Ubuntu 10.04.4, an Internet connection and about 45 minutes to compile and check this version of ns2. The patch includes fixed by Qihe Wang and Mathieu Robin, some code backported from ns 2.29, ideas taken from forums and a few corrections suggested by our experience.
Note: If you have just installed Ubuntu 10.04.4 which is an old release and has not supported anymore, so that you should update the repository Lucid before continue installation. You can follow the way how to do it as written at link https://aghus.wordpress.com/2013/11/11/old-releases-ubuntu-repositories-for-ubuntu-10-10/.
Ok, let’s start. Firstly, upgrade your Ubuntu installation.
sudo apt-get update
sudo apt-get dist-upgrade
Now install packages and libs required for compiling ns2
sudo apt-get install build-essential autoconf libx11-dev xorg-dev
Download NS-2.27 allinone
tar -xvf ns-allinone-2.27.tar.gz
Download the NS-2.27 patch for Ubuntu 10.04
Unpack the patch
tar -xvf ns-2.27-ubuntu_10.04-gcc_4.patch.tar.gz
Apply the patch
patch -p0 < ns-2.27-ubuntu_10.04-gcc_4.patch
Download the ns2-bashrc configuration file
Edit the first line of ns2-bashrc.append and set the value of NS2_DIR to the correct path (if needed)
Append the file to you current .bashrc file
cat ns2-bashrc.append >> ~/.bashrc
Cross you fingers and compile
You can run now the ns validation suite
If everything went fine, you should see a message like
Validate overall report: all tests passed