[ns] help me to finish installing NS correctly

2006-12-06 Thread amira bourayou

*hi all,*
when I did the ./install, I obtained These messages after that ns was
installed successfuly:

put
 /home/you/ns-allinone-2.30/bin :
 /home/you/ns-allinone-2.30/tcl8.4.13/unix:
 /home/you/ns-allinone-2.30/tk8.4.13/unix into your path environnement so
that you ll be able to run itm/tclsh/wish/xgraph
you must put   /home/you/ns-allinone-2.30/otcl-1.12,
 /home/you/ns-allinone-2.30//lib into your LD-LIBRARY-PATH environnement
variables
if it complains about X libraries,add path to your X librairies into
LD-LIBRARY-PATH

if you are using csh,you can see like:
setenv LD-LIBRARY-PATH
 if you are using sh,you can see like:
export LD-LIBRARY-PATH=

put  /home/you/ns-allinone-2.30/tcl 8.4.13/library into your TCL-LIBRARY
environnement variables *Question:*
*1)** How  can i do this?where will i find my LD-LIBRARY-PATH and my
TCL-LIBRARY environnement variables and my path environnement so that i ll
be able to run itm/tclsh/wish/xgraph? *
**
*Regards.*


Re: [ns] help me to finish installing NS correctly

2006-12-06 Thread Larry Brigman

On 12/6/06, amira bourayou <[EMAIL PROTECTED]> wrote:
>
> *hi all,*
> when I did the ./install, I obtained These messages after that ns was
> installed successfuly:
>
> put
>  /home/you/ns-allinone-2.30/bin :
>  /home/you/ns-allinone-2.30/tcl8.4.13/unix:
>  /home/you/ns-allinone-2.30/tk8.4.13/unix into your path environnement so
> that you ll be able to run itm/tclsh/wish/xgraph
> you must put   /home/you/ns-allinone-2.30/otcl-1.12,
>  /home/you/ns-allinone-2.30//lib into your LD-LIBRARY-PATH environnement
> variables
> if it complains about X libraries,add path to your X librairies into
> LD-LIBRARY-PATH
>
> if you are using csh,you can see like:
> setenv LD-LIBRARY-PATH
>  if you are using sh,you can see like:
> export LD-LIBRARY-PATH=
>
> put  /home/you/ns-allinone-2.30/tcl 8.4.13/library into your TCL-LIBRARY
> environnement variables *Question:*
> *1)** How  can i do this?where will i find my LD-LIBRARY-PATH and my
> TCL-LIBRARY environnement variables and my path environnement so that i ll
> be able to run itm/tclsh/wish/xgraph? *

Make a script like this one below and place it in you ns-allinone-2.30
directory.
When you need to run your NS simulations go to that directory and
source the script.

#!/bin/sh
# added for Xterm window title change
export PROMPT_COMMAND='echo -ne "\033]0;NS-2.30
${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
# added for command prompt change
export PS1="[EMAIL PROTECTED] \W]\$ "
if [ "x$NS" != "x" ] ; then
export NS_ORIG=$NS
fi
export NS=`pwd`
if [ "x$LD_LIBARY_PATH" != "x" ] ; then
export LD_LIBRARY_PATH_ORIG=$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH=$NS/otcl-1.12:$NS/lib
if [ "x$TCL_LIBRARY" != "x" ] ; then
export TCL_LIBRARY_ORIG=$TCL_LIBRARY
fi
export TCL_LIBRARY=$NS/tcl8.4.13/library
export PATH_ORIG=$PATH
export 
PATH=$PATH:$NS/bin:$NS/ns-2.30/bin:$NS/tcl8.4.13/unix:$NS/tk8.4.13/unix
unset NS