Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tcom can't find package

758 views
Skip to first unread message

Madan

unread,
Jul 6, 2009, 6:29:39 AM7/6/09
to
Hi there

I downloaded and unzipped tcom zip file into c:/tcl/lib
No matter how much I try it says can't find package when I use
"package require tcom"

I've used other libraries before (eg twapi) - no problems

Any help greatly appreciated.

Madan

Larry W. Virden

unread,
Jul 6, 2009, 7:16:20 AM7/6/09
to

Are you certain that the tcl you are using is the one you think you
are using?

Try starting tclsh8.5 (or whatever yours is called), and then at the %
prompt, type
% info patchlevel
8.4.10
% puts $auto_path
{C:/Program Files/Activestate Tcl/8.4.10.1/lib/tcl8.4} {C:/Program
Files/Activestate Tcl/8.4.10.1/lib} {C:/Program Files/Activestate Tcl/
8.4.10.1/lib/tcllib1.7} {C:/Program Files/Activestate Tcl/8.4.10.1/lib/
tklib0.2} {C:/Program Files/Activestate Tcl/8.4.10.1/lib/tk8.4}

See http://wiki.tcl.tk/auto_path for some information about the
auto_path variable.

JMN

unread,
Jul 6, 2009, 7:40:05 AM7/6/09
to

The tcom folder you get when you unzip it contains more than just the
package.
It has demos, docs, test etc.

just put the tcom folder that is within the lib folder, into c:/tcl/
lib

In general - look for a folder containing 'pkgIndex.tcl', it is likely
to be the one you need to put somewhere on your auto_path.


0 new messages