Question
I was using Apache + ActiveState perl on Windows without problem. To increase performance, I installed mod_perl. Mod_perl binaries (for windows) come with their own distribution of Perl. So I uninstalled ActiveState's. Everything works ok except the register.pm module that does not find the Digest::SHA1 non standard module.
For the while, I register people by hand using htpasswd.exe -s . I works very well (even better than register.pm since blank lines are not added to .htpasswd anymore at each registration), but it is not really straightforward.
Is there something I can change to register.pm to make it use something else than Digest::SHA1 ? Would a direct call the Apache API or to htpasswd.exe do the same as before ? I would appreciate a code sample since I know nothing to Perl.
I have also thought to copy modules from the ActiveState distribution to my new installation, but I don't know wich one exactly (they seem to be in the perl/site/lib directory) nor where to copy them. Would this imply some troubles ? Any advice ?
- TWiki version: 01 Sep 2001
- Web server: Apache 1.3.20
- Server OS: W32
- Web browser:
- Client OS:
--
JeromeBouvattier - 13 Dec 2001
Answer
The best thing is to install the required Perl module from CPAN - just run
perl -MCPAN -e shell
and then type
install Digest::SHA1. You have to answer a few questions the first time you do this, but it does work pretty much automatically, and future installations of modules go much quicker. One of the neatest features of Perl IMO.
If this doesn't work, you can install the module by hand, but this requires more Perl knowledge - see
http://www.cpan.org
.
--
RichardDonkin - 16 Dec 2001
The real answer to this question is to run
ppm from a command line window, then type
install Digest::SHA1. For more information, see
ModPerl and
WindowsInstallCookbook.
--
RichardDonkin - 03 Mar 2002