Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

package require question

Status
Not open for further replies.

JRyanCon

Technical User
Aug 19, 2004
47
US
I want to run a tcl script that will require md5.tcl. I see md5.tcl is located in the tcllib1.6 directory. If I run

package require md5

I get "can't find package md5"

How do I tell it where to look for the package?

thanks,
 
Have you tried fully qualifying the path (eg: c:/tcl/lib/tcllib1.6/md5)?

Bob Rashkin
rrashkin@csc.com
 
Thanks for the reply.

If I use

package require c:/tcl/lib/tcllib1.6/md5

I get "can't find package c:/tcl/lib/tcllib1.6/md5"


 
Ok i figured it out. It wasnt in the autopath. I had to add

lappend directory


Thanks for your input
 
OK. Now this is starting to get wierd. I have tcllib1.5. If I look in the directory (c:\tcl\lib\tcllib1.5\) I see:
md5.tcl
md5c.tcl
md5x.tcl
pkgIndex.tcl

What do you have in there?

Bob Rashkin
rrashkin@csc.com
 
Well I just upgraded to ActiveState 8.4.7 so its now c:\tcl\lib\tcllib1.6\md5

but I have the same files you do.


md5.tcl
md5c.tcl
md5x.tcl
pkgIndex.tcl


Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top