[ns] problem with setting environment variables

2007-02-07 Thread Onyekachi

Hello ns-users,
Please I am a new user of the ns2 simulator. I just installed it 
(ns-2.29) without setting the environment variables properly. Anytime I 
try to run a *.tcl file i get the following message: 'bash: ns: command 
not found.
Please I would appreciate a step by step approach to resolving this problem.

N/B: My ns directory is *c:/home/ns-allinone-2.29/ns-2.29*

Thanks.
Onyekachi.



Re: [ns] problem with setting environment variables

2007-02-07 Thread Scott Ricketts

There is no shortage of web resources for answering unix questions
like how to set environment variables. You will need to add ns to your
PATH to get rid of the command not found error.

-Scott

On 2/7/07, Onyekachi [EMAIL PROTECTED] wrote:

 Hello ns-users,
 Please I am a new user of the ns2 simulator. I just installed it
 (ns-2.29) without setting the environment variables properly. Anytime I
 try to run a *.tcl file i get the following message: 'bash: ns: command
 not found.
 Please I would appreciate a step by step approach to resolving this problem.

 N/B: My ns directory is *c:/home/ns-allinone-2.29/ns-2.29*

 Thanks.
 Onyekachi.





Re: [ns] problem with setting environment variables

2007-02-07 Thread KC Lee

Hi Onyekachi,

You could run the following command to set your environment variable everytime 
you start your Cygwin.

export 
PATH=$PATH:/ns-allinone-2.29/bin:/ns-allinone-2.29/tcl8.4.11/unix:/ns-allinone-2.29/tk8.4.11/unix:/ns-allinone-
export 
LD_LIBRARY_PATH=/ns-allinone-2.29/tcl8.4.11/unix:/ns-allinone-2.29/tk8.4.11/unix/:/ns-allinone-2.29/tk8.4.11/
export TCL_LIBRARY=/ns-allinone-2.29/tcl8.4.11/library


Or you could add in the above into your .bashrc file and this will advoid you 
from setting environment variable everytime you run your Cygwin.

regards
-kc

- Original Message 
From: Onyekachi [EMAIL PROTECTED]
To: ns-users@ISI.EDU
Sent: Wednesday, February 7, 2007 11:52:29 PM
Subject: [ns] problem with setting environment variables


Hello ns-users,
Please I am a new user of the ns2 simulator. I just installed it 
(ns-2.29) without setting the environment variables properly. Anytime I 
try to run a *.tcl file i get the following message: 'bash: ns: command 
not found.
Please I would appreciate a step by step approach to resolving this problem.

N/B: My ns directory is *c:/home/ns-allinone-2.29/ns-2.29*

Thanks.
Onyekachi.


 

It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/