Administration > Documentation/FAQ

Software error: Can't locate Digest/MD5 or Digest/HMAC_MD5

(1/1)

Mike Bobbitt:
If you're seeing an error similar to this:


--- Code: ---Software error:
Can't locate Digest/HMAC_MD5.pm in @INC (@INC contains: /usr/local/lib/perl/5.6.1 /usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .) at album.pl line 3045.
BEGIN failed--compilation aborted at album.pl line 3045.

--- End code ---

There are 2 possible errors here. One indicates Digest/MD5.pm can't be found, while the other error indicates that Digest/HMAC_MD5.pm can't be found.

MD5.pm - Easy Way

Add the following line to your album.cfg file:


--- Code: ---skip_md5=1
--- End code ---

HMAC_MD5.pm - Easy Way

Add the following line to your album.cfg file:


--- Code: ---skip_hmac=1
--- End code ---

MD5.pm - Hard Way

If the easy way above didn't work, you'll need to edit album.pl and remove or comment out all lines between:

#### If you're having MD5 "include" problems, delete everything from this line to the line like it below. ####

and

#### If you're having MD5 "include" problems, delete everything from this line to the line like it above. ####

HMAC_MD5.pm - Hard Way

If the easy way above didn't work, you'll need to edit album.pl and remove or comment out all lines between:

#### If you're having HMAC_MD5 "include" problems, delete everything from this line to the line like it below. ####

and

#### If you're having HMAC_MD5 "include" problems, delete everything from this line to the line like it above. ####

This should resolve the problem, and album.pl should run fine. Be careful to remove *only* the lines between these markers, as removing more will cause album.pl not to run proplerly.

This should skip MD5/HMAC checking, as designated, and resolve the error. Note that doing this means you cannot use hashed passwords, such as those used in UBB and the latest release of YaBB SE. Flatfile authentication will work fine.

The "Better" Way

If you can, the better solution is to install the required packages. On *nix, this is best done via CPAN:


--- Code: ---perl -MCPAN -e shell;
install Digest::MD5
install Digest::HMAC_MD5
exit
--- End code ---

For ActivePerl, this is slightly different:


--- Code: ---ppm
install Digest::MD5
install Digest::HMAC_MD5
exit
--- End code ---

Note that you have to be root/an admin to perform these functions, which will install the required Perl packages. You may also be able to convince your ISP to do this for you.

Cheers

Navigation

[0] Message Index

Go to full version