Skip to main content


Showing posts from November, 2011

Installing NS-2.35 in Ubuntu 11.10 and Fedora 16

NS-23.5 is released this month and here are the simple instructions to install.

Ubuntu 11.10

1. Install ubuntu

2. Download the Ns-2.35 from this website

3. Assuming that your ns-2.35 source is in the /home/loginname/ , execute the commands one by one

sudo apt-get update

sudo apt-get install automake autoconf libxmu-dev build-essential

tar zxvf ns-allinone-2.35.tar.gz

cd ns-allinone-2.35


4. Once the process is over, it will give the set of paths to be set.

5. Go to terminal and open .bashrc by giving this command

gedit .bashrc

and copy the following lines ( my login name for linux is pradeep, you can change yours accordingly)

export PATH=$PATH:/home/pradeep/ns-allinone-2.35/bin:/home/pradeep/ns-allinone-2.35/tcl8.5.10/unix:/home/pradeep/ns-allinone-2.35/tk8.5.10/unix
export LD_LIBRARY_PATH=/home/pradeep/ns-allinone-2.35/otcl-1.14:/home/pradeep/ns-allinone-2.35/lib

6. run the command "source .bashrc" (without quotes)

and then type ns (a % symbol indicates the…

Installing ns2.35 in Mac OS (Snow Leopard)

Installing ns 2.35 RC8 in Mac OS X (snow leopard) is given below
Step 1: Download xcode ( install it in Mac OS(Xcode is different for Mac OS Lion and Mac OS Snow Leopard)
Step 2: Download the ns-allinone-2.35-rc8.tar.gz from this location
Step 3: Go to Terminal in Mac (by using Finder)
Step 4: Untar the ns2.35 package using the following commands
tar zxvf ns-allinone-2.35-rc8.tar.gz
cd ns-allinone-2.35-rc8
./installStep 5: You need to verify the path for ‘xlibdirs’ and ‘xincdirs’ in various configuration files of ns2. But NS-2.35 by default has it all. you need not specify it
But if you want to install ns-2.34 and earlier versions, all the configuration files in to be added as per this blog post
Step 6: Once installed successfully, the path information will be shown. Set the PATH, LD_LIBRARY_PATH information in the following file .profile o…