General
cancel
Showing results for 
Search instead for 
Did you mean: 

Expect 5.43 on HPUX 11.11 "Tcl_Init failed"

SOLVED
Go to solution
Mike Fain
Occasional Visitor

Expect 5.43 on HPUX 11.11 "Tcl_Init failed"

I've installed tcltk-8.5.7-hppa-11.11.depot and expect-5.43-hppa-11.11.depot (in that order) and when I run my expect script, I get the following error:

Tcl_Init failed: Can't find a usable init.tcl in the following directories:
/usr/local/lib/tcl8.3 /opt/lib/tcl8.3 /lib/tcl8.3 /lib/tcl8.3/library /library /tcl8.3/library tcl8.3/library /usr/local/lib/tcl8.3


the file exsists:
>ll /usr/local/lib/tcl8.3/init.tcl
-rw-r--r-- 1 root sys 17273 Aug 27 2008 /usr/local/lib/tcl8.3/init.tcl

I have it running on another host, but can't get it to work on this one.

Anyone have any ideas on what could be causing the error message?
3 REPLIES
Shinji Teragaito_1
Respected Contributor
Solution

Re: Expect 5.43 on HPUX 11.11 "Tcl_Init failed"

Did you google the error message ?

export TCL_LIBRARY=/usr/local/lib/tcl8.3

Although I'm not a tcl user, I hope this works.
Mike Fain
Occasional Visitor

Re: Expect 5.43 on HPUX 11.11 "Tcl_Init failed"

That fixed it. I didn't see that solution when I was searching that error. I also had to open permissions on the /usr/local/lib dir.

Thanks!!
Mike Fain
Occasional Visitor

Re: Expect 5.43 on HPUX 11.11 "Tcl_Init failed"

setting TCL_LIBRARY fixed my issue