Installation
1) ndnSIM -Importing new ndnSIM with visulizer in eclipse
----->mercurialeclipse / main / wiki / Installation and Configuration — Bitbucket
----->Install Oracle Java 8 In Ubuntu Or Linux Mint Via PPA Repository [JDK8] ~ Web Upd8: Ubuntu / Linux blog
2) Installing R
3) Openflow with ns-3
4) Installing tor browser in ubuntu 14.04
5) Ns-2 installation
Steps for installing ns-2.35 on Ubuntu 13.04 and before versions.
Open Terminal
[Step 1]
Install some Essential Libraries and Softwares:
sudo apt-get install
tcl8.5-dev tk8.5-dev
sudo apt-get install gcc-4.4 g++-4.4
sudo apt-get install build-essential autoconf automake
sudo apt-get install perl xgraph libxt-dev libx11-dev libxmu-dev
[Step 2]
Download
ns-2.35
Download ns-2.35 from
http://sourceforge.net/projects/nsnam/files/latest/download
Unpack ns2 to your Desktop directory
tar -zxvf ns-allinone-2.35.tar.gz -C /home/khawajaali/Desktop
(or simply unzip the package on your desktop)
[Step 3]
Modify the OTcl makefile
Open
/home/khawajaali/Desktop/ns-allinone-2.35/otcl-1.14/Makefile.in
Change CC = @CC@ to
CC=gcc-4.4
Save the file
[Step 3.1]
installation errors
If you get installation errors modify the specified files in ns-allinone-2.35 folder as specified below:
Go to
ns-allinone-2.35/ns-2.35/linkstate/ 2. Edit ls.h In line number 137, in place of void eraseAll() { erase(baseMap::begin(), baseMap::end()); } make it void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
[Step 4] Install ns2
cd /home/khawajaali/Desktop/ns-allinone-2.35
./install
(this will take a while)
[Step 5] Modify ~/.bashrc
Once the installation is successful (without any errors), we need to add the path information to the file ~/.bashrc
gedit ~/.bashrc
Now Add these lines in the end of the file
#LD_LIBRARY_PATH
OTCL_LIB=/home/khawajaali/Desktop/ns-allinone-2.35/otcl-1.14
NS2_LIB=/home/khawajaali/Desktop/ns-allinone-2.35/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
# TCL_LIBRARY
TCL_LIB=/home/khawajaali/Desktop/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/khawajaali/Desktop/ns-allinone-2.35/bin:/home/khawajaali/Desktop/ns-allinone-2.35/tcl8.5.10/unix:/home/khawajaali/Desktop/ns-allinone-2.35/tk8.5.10/unix
# Note: the above two lines starting from XGRAPH should come in the same line
NS=/home/khawajaali/Desktop/ns-allinone-2.35/ns-2.35/
NAM=/home/khawajaali/Desktop/ns-allinone-2.34/nam-1.15/
PATH=$PATH:$XGRAPH:$NS:$NAM
Save the modification and close the file
source ~/.bashrc
end of installation