For Programmers: Free Programming Magazines  


Home > Archive > Tcl > June 2004 > starkit & Expect.....









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author starkit & Expect.....
Dave Laskan

2004-06-27, 3:56 am

So i know including the expect extension in a starkit is sometimes
problematic and i searched all over the newsgroup and the wiki and
found some mention of it.
Looking at a good page on the wiki that shows how to build expect into
a starkit, i found: http://wiki.tcl.tk/9413

I followed the instructions on that page, and compiled expect with the
'--enable-shared' and '--enable-stubs' options turned on. I then
created a simple test program to spit out the expect version in a tcl
file exactly like on the wiki page (the 'tkex.tcl' example file). I
followed the directions exactly and am getting an error. I tried some
other things, but i can't get by the error.
At step 11 on the wiki page, it says:

----------
11. Now test it out.
$ tclkit tkex.vfs/main.tcl
5.38.0
----------

(I'm using 5.41.0, but that shouldn't matter at all for this example).
The error i get at this step is:

>tclkit tkex.vfs/main.tcl

couldn't load file "/home/dalaskan/sk_example2/tkex.vfs/lib/expect5.41/SunOS5.8/libexpect5.41.so":
ld.so.1: tclkit: fatal: libtcl8.4.so: open failed: No such file or
directory
while executing
"load /home/dalaskan/sk_example2/tkex.vfs/lib/expect5.41/SunOS5.8/libexpect5.41.so"
("package ifneeded" script)
invoked from within
"package require Expect"
(file "/home/dalaskan/sk_example2/tkex.vfs/lib/app-tkex/tkex.tcl"
line 5)
invoked from within
"source /home/dalaskan/sk_example2/tkex.vfs/lib/app-tkex/tkex.tcl"
("package ifneeded" script)
invoked from within
"package require app-tkex"
(file "tkex.vfs/main.tcl" line 4)


Would anyone have ideas or suggestions on what I can try? Is there
something wrong with the expect library i built? (i pointed it at a
mixture of ActiveState files & some tcl source headers with the
'--with-tcl' & '--with-tclinclude' flags) Any clues would be greatly
appreciated.
All I'm trying to get is a starkit built that can use the expect
package as well.

Thanks.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com