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

Re: [ns] after installing ns2.1b8



the new environment variables should be set like:

setenv PATH $PATH:your_new_path.

Hope it helps,
-chen xuan

On Fri, 22 Jun 2001, Nipul Jayvant Shah wrote:

> Hi! thank you very much for your reply. However I have been having some
> problems after setting the environment variables. I am using tcsh shell.
> so after using setenv for PATH, LD_LIBRARY_PATH and TCL_LIBRARY, a lot of
> commands stopped working in linux. I couldn't even use 'ls', 'cd',
> 'pwd'... even 'ns' stopped working. it just keeps saying 'command not
> found'. did i do something wrong?
>
> below are the exact commands that i used at the prompt (after ns installation):
> setenv 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
> setenv LD_LIBRARY_PATH /ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/otcl-1.0a7:/ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/lib
> setenv TCL_LIBRARY /ncsu/mmtech/incoming/njshah/ns-allinone-2.1b8/tcl8.3.2/library
>
> Could you please help me with this?
> thanks in advance.
> Nipul Shah
>
>
> On Fri, 22 Jun 2001, Nikolaos Katsarakis Austauschstud. (M. Schweigel) wrote:
>
> > 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
>

-- 
Xuan Chen
USC/ISI