in reply to Re: Template Toolkit breaks under mod_perl2?
in thread Template Toolkit breaks under mod_perl2?

I have re-installed Apache+modperl2 and Perl.

I got Perl working again. Ordinary modperl works as well (a simple "Hello World" page worked).

TT2 however remains stubborn.

Template::Service::Apache tries to use Apache2::Request, which tries to use APR::Request::Param and this gives the following error:

Can't load 'x:/webserver/Perl/site/lib/auto/APR/Request/Apache2/Apache2.dll' for module APR::Request::Apache2: load_file:The specified module could not be found at x:/webserver/Perl/lib/DynaLoader.pm line 230. at x:/webserver/Perl/site/lib/Apache2/Request.pm line 3

Compilation failed in require at x:/webserver/Perl/site/lib/Apache2/Request.pm line 3.

BEGIN failed--compilation aborted at x:/webserver/Perl/site/lib/Apache2/Request.pm line 3.

Compilation failed in require at X:\webserver\Perl\site\lib\Template\Service\Apache.pm line 50.

BEGIN failed--compilation aborted at X:\webserver\Perl\site\lib\Template\Service\Apache.pm line 50.

The strange thing is that x:/webserver/Perl/site/lib/auto/APR/Request/Apache2/Apache2.dll is sitting right there! Only Dynaloader seems to have a problem with finding it.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re^3: Template Toolkit breaks under mod_perl2?
by PodMaster (Abbot) on Jul 11, 2005 at 04:04 UTC
    ...The strange thing is that x:/webserver/Perl/site/lib/auto/APR/Request/Apache2/Apache2.dll is sitting right there! Only Dynaloader seems to have a problem with finding it.
    Its probably something Apache2.dll is trying to load that's not in your path. Try to view Apache2.dll with dependency walker, you'll see a list of dll's it needs. If you check the Application Log in Event Viewer the actual name of the module will probably be revealed.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      This Dependency Walker is a nifty piece of gear!

      It appeared that the mod_perl and mod_apreq2 modules were not in my PATH and therefore could not be found by Apache2.dll

      Thanks for the good pointer. I will now see if amending the PATH will solve the problem.

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law