@Arputha Rini , Hi.
Nam : Install an rpm package ..
32bits (i686) : nam-1.14-1.el6.i686.rpm
https://drive.google.com/file/d/0B7S255p3kFXNLWhoVWp3MzVFWlU/edit?usp=sharing... or if it's a 64bits (x86_64) OS (Not recommended for ns2) : nam-1.14-2.el6.x86_64.rpm
https://drive.google.com/file/d/0B7S255p3kFXNWDVsMThlaDVCQU0/edit?usp=sharing.. Install with # yum localinstall nam-1.14*
Note : nam-1.14 is statically compiled with tcl/tk. I.e. will also work on an OS with no ns2, tcl / tk.
The other version, nam-1.15, doesn't come with build options that advanced.
Howto start `tracegraph' :
$ export LD_LIBRARY_PATH=
./bin/glnx86 && ./trgraph
Post #70 here
http://www.linuxquestions.org/questions/programming-9/ns2-4175449125/page5.htmlSetting all those *PATH's in .bashrc : Not required. It's just a 15 year old text from a time,
when people used the University computer, and had no permissions to install 'ns' to /usr/local/bin/.
Today you can do this :
1) $ cd ns-allinone-2.35/ns-2.35/
2) # make install
..... and 'make install' will copy the executable 'ns' to /usr/local/bin/ .
Note 2 : 'ns' is hard coded to know the location of it's libraries, etc.: tclsh8.5, libtcl*, libtk*.
-