http://www.perlmonks.org?node_id=411224


in reply to [error] Can't locate object method "new" via package "Digest::MD2"

did you setup a proper PERL5LIB and possibly use Digest::MD2; in your mod_perl startup script? I believe this changed with Apache2, how did you setup your environment?
  • Comment on Re: [error] Can't locate object method "new" via package "Digest::MD2"

Replies are listed 'Best First'.
Re: [error] Can't locate object method "new" via package "Digest::MD2"
by rctay (Novice) on Dec 01, 2004 at 01:16 UTC

    fglock:
    Digest::MD2 came with the ActiveState Perl installation.

    BraveTwoZero:
    There's only one Apache installation.

    elwarren:
    Here's part of httpd.conf related to mod_perl:

    #mod_perl LoadFile "F:/Net/Perl/bin/perl58.dll" LoadModule perl_module modules/mod_perl.so PerlRequire "F:/Net/Apache Group/Apache2/conf/startup.pl" Alias /perl/ "F:/Net/Apache Group/Apache2/perl/" <Location /perl> SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders PerlSendHeader On </Location> <Location /cgi-bin> SetHandler cgi-script Options +ExecCGI </Location> <Location /perl-status> SetHandler modperl PerlResponseHandler Apache::Status Order Deny,Allow Allow from all </Location>

    The thing to note is that it works with cgi-bin, and not in the /perl directory.