Faraz,

first of all check the location of your ns, shell type that you use (csh or sh 
....  type in terminal- echo $SHELL) and the tcl/tk version in that ns 
package.......if you are using csh shell, then try put the following line in 
your .cshrc file..... I assume you use tcl8.4.10 and tk8.4.10...

------------------------------------------------------------------------------------------------------------------------------------------
set path=($path /home/faraz/Desktop/ns-allinone-2.30/bin 
/home/faraz/Desktop/ns-allinone-2.30/tcl8.4.10/unix 
/home/faraz/Desktop/ns-allinone-2.30/tk8.4.10/unix)

setenv LD_LIBRARY_PATH 
/home/faraz/Desktop/ns-allinone-2.30/otcl-1.12:/home/faraz/Desktop/ns-allinone-2.30/lib;

setenv TCL_LIBRARY /home/faraz/Desktop/ns-allinone-2.30/tcl8.4.10/library
---------------------------------------------------------------------------------------------------------------------------------------------
In the case that you want to use many ns-allinone versions..... you could 
install as many as you want but as far as I concern, only one ns version could 
run at a time (not all at once)....this is due to the path environment setup in 
the .cshrc file...meaning that if you have the ns2.30, you may put the path 
link as above and if you want to switch to ns2.33, comment the above path links 
(with #) and put the same path lines but with ns2.33 and its tcl/tk version....

good luck


      

Reply via email to