jump to navigation

Installing ns-allinone-2.27 at Ubuntu 10.04.4 Lucid February 9, 2014

Posted 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

wget ftp://ftp.isi.edu/nsnam/ns-allinone-2.27.tar.gz

Unpack NS

tar -xvf ns-allinone-2.27.tar.gz

Download the NS-2.27 patch for Ubuntu 10.04

wget https://dl.dropboxusercontent.com/u/109267497/ns227inubuntu1004/ns-2.27-ubuntu_10.04-gcc_4.patch.tar.gz

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

wget https://dl.dropboxusercontent.com/u/109267497/ns227inubuntu1004/ns2-bashrc.append

Edit the first line of ns2-bashrc.append and set the value of NS2_DIR to the correct path (if needed)

gedit ns2-bashrc.append

Append the file to you current .bashrc file

cat ns2-bashrc.append >> ~/.bashrc

Reload .bashrc

source ~/.bashrc

Cross you fingers and compile

cd ns-allinone-2.27/

You can run now the ns validation suite

cd ns-2.2.7

If everything went fine, you should see a message like

Validate overall report: all tests passed



No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: