Я был на этом весь день сейчас, читая каждый тип различных способов добавить эти строки. Это привело к тому, что меня заблокировали в своем профиле, потому что я неправильно установил .profile. Поэтому я просто задам очень простой вопрос: что я набираю в командной оболочке, чтобы заставить работать следующее.
Please put /home/karl/ns-allinone-2.35/bin:/home/karl/ns-allinone-2.35/tcl8.5.10/unix:/home/karl/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/karl/ns-allinone-2.35/otcl-1.14, /home/karl/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
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=
(2) You MUST put /home/karl/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.
Я должен добавить их, чтобы мои скрипты .tcl работали, пока я получаю сообщение об ошибке.
**invalid command name "new"
while executing
"new Simulator"
invoked from within
"set ns [new Simulator]"
(file "test.tcl" line 2)**"
Which is a result of my path varibles not being set correctly.
Что я набираю в моем терминале по умолчанию 12.10, чтобы заставить это работать.
