Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.5.10: /home/mohsen/simulation/ns-allinone-2.35/{bin,include,lib}
tk8.5.10: /home/mohsen/simulation/ns-allinone-2.35/{bin,include,lib}
otcl: /home/mohsen/simulation/ns-allinone-2.35/otcl-1.14
tclcl: /home/mohsen/simulation/ns-allinone-2.35/tclcl-1.20
ns: /home/mohsen/simulation/ns-allinone-2.35/ns-2.35/ns
nam: /home/mohsen/simulation/ns-allinone-2.35/nam-1.15/nam
xgraph: /home/mohsen/simulation/ns-allinone-2.35/xgraph-12.2
gt-itm: /home/mohsen/simulation/ns-allinone-2.35/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
----------------------------------------------------------------------------------
Please put /home/mohsen/simulation/ns-allinone-2.35/bin:/home/mohsen/simulation/ns-allinone-2.35/tcl8.5.10/unix:/home/mohsen/simulation/ns-allinone-2.35/tk8.5.10/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put /home/mohsen/simulation/ns-allinone-2.35/otcl-1.14, /home/mohsen/simulation/ns-allinone-2.35/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>
(2) You MUST put /home/mohsen/simulation/ns-allinone-2.35/tcl8.5.10/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
After these steps, you can now run the ns validation suite with
cd ns-2.35; ./validate
For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.
root@mohsen-virtual-machine:/home/mohsen/simulation/ns-allinone-2.35#
در غیر این صورت تنها خطای محتمل با انجام کار زیر درست خواهد شد:
# LD_LIBRARY_PATH
OTCL_LIB=/home/mohsen/simulation/ns-allinone-2.35/otcl-1.14
NS2_LIB=/home/mohsen/simulation/ns-allinone-2.35/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=/home/mohsen/simulation/ns-allinone-2.35/tcl8.5.10/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/mohsen/simulation/ns-allinone-2.35/bin:/home/mohsen/simulation/ns-allinone-2.35/tcl8.5.10/unix:/home/mohsen/simulation/ns-allinone-2.35/tk8.5.10/unix
NS=/home/mohsen/simulation/ns-allinone-2.35/ns-2.35/ns
NAM=/home/mohsen/simulation/ns-allinone-2.35/nam-1.15/nam
PATH=$PATH:$XGRAPH:$NS:$NAM
من برنامه رو طبق دستور نصب کردم ولی برای اجرای برنامه وقتی ns رو در ترمینال می نویسم فقط علامت درصد ظاهر میشه و وقتی به دایرکتوری برنامه میرم و روی فایل اجرایی مربوطه کلیک میکنم هیچی باز نمیشه و هیچ اتفاقی نمی افته
اصلا نمی دونم چطور باید برنامه رو اجرا کنم.