[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] a general ns Q:
On Friday 13 July 2001 19:34, Yan Yu wrote:
> Hello, all,
>
> now I can run "ns" under ns-2 working directory,
> but when I run it from any other directory, I got the following
> error msg:
>
> "ns: error in loading shared libraries:
> /home/yanyu/ns-cur/otcl/libotcl.so:
> undefined symbol: Tcl_Alloc"
>
> I think i set my path right:}
>
> in my .cshrc file, i set path to be:
>
> set path=(. $HOME/bin $HOME/ns-cur $HOME/ns-cur/tcl8.3.2/unix/bin
> $HOME/ns-cur/tk8.3.2/unix/ $path)
> setenv LD_LIBRARY_PATH
> LD_LIBRARY_PATH:/usr/kerberos/lib:/usr/lib:/lib:/usr/X11R6/lib:/usr
>/local/lib:/opt/lib:$HOME/ns-cur/tk8.3.2/unix/lib:$HOME/ns-cur/tcl8.
>3.2/unix/lib:$HOME/ns-cur/otcl
You need to set three environment variables:
PATH
LD_LIBRARY_PATH
TCL_LIBRARY
You set the first two, but you don't mention the third. Try
something like
setenv TCL_LIBRARY $HOME/ns-cur/tcl8.3.2/library
--
Brian Lee Bowers | RADIANT Team (Summer Intern)
bowersb@lanl.gov | Los Alamos National Laboratory