Professional Documents
Culture Documents
04 - NS2
Tutorial # 2
ns2 installation in Ubuntu 18.04
Unlike earlier version of ubuntu, the 18,04 version does not support the direct installation of ns2,
because of the latest C/C++ compiler (7.x), but the latest C/C++ compiler supported by ns2 is gcc-
4.8. So this post and video tells you about the installation of gcc-4.8 version, then ns2 and then
configuration.
Here are the steps, Please follow the video given below for more information.
if you have installed ubuntu just now, you can try these commands also in the beginning
$] cd ns-allinone-2.35/ns-2.35
$] gedit Makefile.in
$] gedit linkstate/ls.h
export PATH=$PATH:/home/pradeepkumar/ns-allinone-2.35/bin:/home/pradeepkumar/ns-allinone-
2.35/tcl8.5.10/unix:/home/pradeepkumar/ns-allinone-2.35/tk8.5.10/unix
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/pradeepkumar/ns-allinone-2.35/otcl-
1.14:/home/pradeepkumar/ns-allinone-2.35/lib