Welcome to LQ. .. ..
Requirements : # yum install \
libX11-devel libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel \
gcc-c++ compat-gcc-34-c++ make automake autoconf libtool
There may be something more to install, depending on version.
ns-allinone-2.3x also requires tk-8.4-lastevent.patch :
http://bugs.gentoo.org/attachment.cgi?id=161242
cd ns-allinone-2.34/tk-8.4.18/
patch -p0 < tk-8.4-lastevent.patch
Assume ns-allinone-2.34.tar.gz presence in /home/<user-name>/
tar xvf ns-allinone-2.34.tar.gz && cd ns-allinone-2.34/
&& ./install
ns-allinone-2.35-RC6 can also be recommended :
http://www.isi.edu/nsnam/dist/releas....35-RC6.tar.gz
All ns2 Threads at LQ :
http://www.linuxquestions.org/questions/search.php
→ → "Tag Name" = ns2
P.S. : And again : The suggested method in post #2 :
Not really recommended. Installing the separate applications
to /usr/local/ , etc. can be done later, if you wish.
..