You are on page 1of 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