On Aug 3, 2006, at 3:34 PM, Joel Gwynn wrote:

On 8/3/06, Michael Petnuch <[EMAIL PROTECTED]> wrote:

On Aug 3, 2006, at 3:03 PM, Michael Peters wrote:

>
>
> Joel Gwynn wrote:
>> On 8/3/06, Joel Gwynn <[EMAIL PROTECTED]> wrote:
>>> On 8/3/06, Michael Peters <[EMAIL PROTECTED]> wrote:
>>>>
>>>>
>>>> Joel Gwynn wrote:
>>>>> $VERSION = '1.21';
>>>>
>>>> Any chance you could upgrade Apache::Test and then try again? If
>>> that works then
>>>> I'll bump up the required version of Apache::Test to work with
>>> Dispatch.
>>>>
>>>
>>> Sweet!  That seems to have fixed it.  Thanks a bunch!
>>>
>>> Joel
>>>
>>
>> OK.  Now I'm getting this in my error log when I actually run it:
>>
>> failed to resolve handler `CGI::Application::Dispatch': Can't locate
>> Apache/Constants.pm in @INC
>
> Which version of apache are you running? What do these say when run
> from the shell?
>   locate Apache/Constants.pm
>   locate Apache2/Constants.pm

The Apache2 constant file is in Apache2/Const.pm.

Joel since you are using Debian enter this commant:
dpkg --list '*mod-perl*'

You need to have either libapache-mod-perl or libapache2-mod-perl
installed for the constants file.  If you are running anything other
than stable (i.e. testing or etch or whatever) you should have
libapache2 installed since the default apache server is 2 (I think it
is in stable as well but I am not 100% certain).

After you get this to work let me know if you get error 200 when you
load the page in the browser.  That was my problem (I am also using
Debian).  I wrote a fix that hides this innocent error.

Michael Petnuch



*sigh*.  So in my available packages I have  libapache2-mod-perl2, but
when I went to install it, it said it was already installed.  So I got
the bright idea of uninstalling it, then re-installing.  Now I seem to
have completely broken my mod_perl, because I'm getting errors like
this when re-starting Apache:

Invalid command 'PerlResponseHandler'

The dpkg command returns this:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
un  libapache-mod- <none>         (no description available)
ii  libapache2-mod 1.999.21-1     Integration of perl with the Apache2 web ser

Ahah!  You are using stable.  Basically version 1.999.22 of mod-perl is completely different than everything before it.

From the mod-perl changelog (for version 1.999.22):

  ******************** IMPORTANT ********************
    this version of mod_perl is completely incompatible
      with prior versions of mod_perl, both 1.XX and
     1.99_XX. Please read the below changes carefully.
    ***************************************************

My suggestion.  Upgrade mod-perl.    Because Dispatch won't work with that version.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to