This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

MD5 package missing

Help for those learning Tcl or writing their own scripts.
Post Reply
S
StarLion
Voice
Posts: 16
Joined: Tue Dec 20, 2005 6:15 pm

MD5 package missing

Post by StarLion »

If when i compile my script, i try to use the MD5 space (calling 'package require md5'), and get a 'cant find package' error... is there anything I can do, if i dont own the server?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

There is no package md5, [md5] is an Eggdrop Tcl command. You can use it as long as you have the core Eggdrop module loaded.
md5 <string>
Returns: the 128 bit MD5 message-digest of the specified string
Module: core
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

Pretty sure there is an md5 package included in tcllib, but as SirFz mentions, eggdrop provides an md5 command internally as is.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

md5 is indeed a part of tcllib. tcllib, however, is not part of the tcl/tk project, but an external package providing extended features. You can find the project at sourceforge, and it is a tcl-only library - meaning it requires no compilation but should run straight out the tar ball (apart from setting up library search paths I suppose).

If you wish to use the tcllib version of md5, grab a copy from sourceforge, unpack to your favourite directory, run the installer and specify locations to install packages, examples, binaries, etc; and add the location of the packages to the tcl_pkgPath list-variable before calling "package require ...".
NML_375
Post Reply