This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Tcl_Init failed: can't read "env(TCL_LIBRARY)": no such variable


--- Keith Seitz <keiths@redhat.com> wrote:
> > - Can you run it from your build directory?
> Should be $BUILD_DIR/gdb/insight. There is code to
> deal with the special 
> case of running from the build directory.

Yes, I can run insight from the build directory. So
currently I decide to use insight in this way, which
is good enough for me now :).

> Something odd going on. I'm not sure what though. If
> you set a break at 
> gdbtk.c:482, is that breakpoint ever hit? If so, you
> might try printing 
> the tcl variable ::errorInfo at this point (before
> calling error()).
> 
> It occurs to me that this startup script could be
> failing 

Yes, the error comes from that line, which is "  if
(Tcl_Init (gdbtk_interp) != TCL_OK)
   error ("Tcl_Init failed: %s",
dbtk_interp->result);"


But I am not sure how to pring the errorInfor---I have
tried puts stdout $errorInfo, and error("$errorInfo")
etc. but they seems to be not the right way.

> 
> I wonder if the very first line of this is causing
> you problems. If you 
> set TCL_LIBRARY to /usr/local/share/tcl8.4, does the
> problem go away?
> 
> Keith
> 


I tried "export TCL_LIBRARY=/usr/local/share/tcl8.4"
before issuing insight or before make the
installation, but there occurs the same error.

Lai Xuecheng, PhD Candidate
National University of Singapore, Dept. of Electrical & Computer Engineering
Research interests: Path Planning and Navigation for Constrained Mobile Robots
http://xclai.mycezone.com


		
__________________________________ 
Yahoo! Movies - Search movie info and celeb profiles and photos. 
http://sg.movies.yahoo.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]