0% found this document useful (0 votes)
94 views1 page

NS2 Installation

The document provides instructions to install the ns2 network simulator in Kali Linux. It involves 5 steps: 1) updating and installing compilers, 2) extracting, modifying, and installing ns2, 3) modifying the .bashrc file to set paths for ns2 binaries, 4) sourcing the updated .bashrc, and 5) installing an additional Perl library for ns2.

Uploaded by

Bindu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
94 views1 page

NS2 Installation

The document provides instructions to install the ns2 network simulator in Kali Linux. It involves 5 steps: 1) updating and installing compilers, 2) extracting, modifying, and installing ns2, 3) modifying the .bashrc file to set paths for ns2 binaries, 4) sourcing the updated .bashrc, and 5) installing an additional Perl library for ns2.

Uploaded by

Bindu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Installation of ns2 in Kali Linux

One Extra step To add Repository :

$] Go to this location = /etc/apt


$] Replace or Modify the source.list as given one

step - 1: Update the system & install old compliers.

$] sudo apt update


$] sudo apt install build-essential autoconf automake libxmu-dev
$] sudo apt install gcc-4.8 g++-4.8

step - 2: Extract modify install.

$] tar zxvf ns-allinone-2.35.tar.gz


$] cd ns-allinone-2.35/ns-2.35

//In makefile.in Set the @CC@ -> gcc-4.8 @CPP@ -> g++-4.8
$] gedit ns-2.35/Makefile.in
$] gedit nam-1.15/Makefile.in
$] gedit xgraph-12.2/Makefile.in

//Change as shown
$] gedit ns-2.35/linkstate/ls.h
line number 137, change erase to this->erase
$] ./install

step - 3:

In this file we need to modify

$] gedit /root/.bashrc

export PATH=$PATH:/home/name_of_user/ns-allinone-2.35/bin:/home/name_of_user/ns-
allinone-2.35/tcl8.5.10/unix:/home/name_of_user/ns-allinone-2.35/tk8.5.10/unix

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/name_of_user/ns-allinone-2.35/otcl-
1.14:/home/name_of_user/ns-allinone-2.35/lib

Step - 4: To work without restart

$] source /root/.bashrc

Step - 5:

$] apt-get install libperl4-corelibs-perl

You might also like