Hi,
you have to update your PATH variable.... you installed NS-2 but your
OS doesn't know that.... you should be getting a message like this
after a successfull installation... (in Linux)
/////////////////////////////////////////////////////////////////////////////////////////////
Please put
.../ns2/ns-allinone-2.29/bin:/home/ekici/research/programs/ns2/ns-allinone-2.29/tcl8.4.11/unix:....ns2/ns-allinone-2.29/tk8.4.11/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
IMPORTANT NOTICES:
(1) You MUST put ..../ns2/ns-allinone-2.29/otcl-1.11,
..../ns2/ns-allinone-2.29/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/ekici/research/programs/ns2/ns-allinone-2.29/tcl8.4.11/library
into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.
(3) [OPTIONAL] To save disk space, you can now delete directories tcl8.4.11
and tk8.4.11. They are now installed under
..../ns2/ns-allinone-2.29/{bin,include,lib}
After these steps, you can now run the ns validation suite with
cd ns-2.29; ./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.
///////////////////////////////////////////////////////////
On 3/9/06, Nagender Annem <[EMAIL PROTECTED]> wrote:
>
> Hi Ben,
>
> I installed Ns2 from the link you provided.
> But I faced a problem when I tried to run example2 in startxwin.bat
> by issuing
>
> *ns example2.tcl*
>
> It says ns command is not found.
>
> Can you Suggest me.
>
> Thanks,
> Nagender Reddy Annem.
>
--
3L (Long Live Linux...!!!)