[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] after installing ns2.1b8



As it is stated on the message, you have to set some enviroment variables.

First you must find your shell (bash, sh, csh, ...)

type set | more and look for a line SHELL=

if it is bash or sh, then use the command export VARIABLE=value
eg.

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/otcl-1.0a7:
/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/lib

for the PATH

export
PATH=$PATH:/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/bin:/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/tcl8.3.2/unix:/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/tk8.3.2/unix

and

export TCL_LIBRARY=$TCL_LIBRARY:/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/tcl8.3.2/library


All the above export commands are to be issued in one line.
If you have bash, then you can include the above commands in .bash_profile in your home directory, so that you don't have to type them every time.

Other shells have also configuration files, like .cshrc for csh, but unfortunately I am not an expert on Unix to know them all.

if it is csh, I guess you can use the command setenv VARIABLE value.

Hope it helps

Nick

Nipul Jayvant Shah wrote:

> Hi! I am a first time ns user and recently installed the allinone version
> of ns2.1b8. after the installation i got the following message:
>
> ------------------------------------------------------------------------
> Please put
> /ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/bin:/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/tcl8.3.2/unix:/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/tk8.3.2/unix
> into your PATH environment; so that you'll be able to run
> itm/tclsh/wish/xgraph.
>
> IMPORTANT NOTICES:
>
> (1) You MUST put
> /ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/otcl-1.0a7,
> /ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/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
> /ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/tcl8.3.2/library into your
> TCL_LIBRARY environmental
>     variable. Otherwise ns/nam will complain during startup.
> ---------------------------------------------------------------------------
>
> Could someone please elaborate on this? This may seem trivial, but any
> help will really be appreciated.
>
> Thanks.
>
> njs