salam alikom
   
  To set environment of ns2  
  I go to /etc folder and type
  
 
 vi ~/.bashrc
 
 Add the following lines to the end of it. 
 
 # LD_LIBRARY_PATH
 OTCL_LIB=/usr/src/ns-allinone-2.31/otcl-1.13
 NS2_LIB=/usr/src/ns-allinone-2.31/lib
 X11_LIB=/usr/X11R6/lib
 USR_LOCAL_LIB=/usr/local/lib
 export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB
 
 # TCL_LIBRARY
 TCL_LIB=/usr/src/ns-allinone-2.31/tcl8.4.14/library
 USR_LIB=/usr/lib
 export TCL_LIBRARY=$TCL_LIB:$USR_LIB
 
 # PATH
 
XGRAPH=/usr/src/ns-allinone-2.31/bin:/your/path/ns-allinone-2.31/tcl8.4.14/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
 NS=/usr/src/ns-allinone-2.31/ns-2.31/
 NAM=/usr/src/ns-allinone-2.31/nam-1.13/
 PATH=$PATH:$XGRAPH:$NS:$NAM
   
  Afterthat I reboot my linux(mandrake10)
  And run ns2 by type
  #ns
  In the shell but ns2 don't run
  What is wrong in this?
  Help me
  Gazak allah khiran
  

       
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.

Reply via email to