@hamdan : Welcome to LQ.
Blog´s and other informations you can find on the Internet,
are often written by young students, who are working
with ns2 and a "Linux OS" for the first time.
Some information
may be valid the day it was written.
But : Things change → OS´s are updated, etc.
`ns-allinone-2.34' , Ubuntu 12.04 and later :
$ sudo apt-get install \
g++ g++-4.4 autoconf automake make patch libtool libxmu-dev xgraph
Unpack ns-allinone-2.34.tar.gz in /home/name/:
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ patch -p0 < otcl_ns234_gcc-4.4.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install
$ cd ns-2.34/
$ sudo make install
... That's it. Nothing more. And you can do simulations.
Nam : Use a package from post #2 here ....
http://www.linuxquestions.org/questi...-4175524760/#2
-