On Tue, 2 Nov 2004 10:30:32 -0500 Jason Dixon <[EMAIL PROTECTED]> wrote:
> Note: Folks on perlmonks might recognize this post from last night. > There have been no responses, so I'm posting it to the mod_perl list. > > I'm trying to profile some perl CGI someone else wrote, but I can't > seem to get Apache::DProf working. My server runs Apache 2.0.46 with > mod_perl 1.99 and Apache::DProf 0.09. I'm getting the following error > > when trying to start Apache when Apache::DProf is set to load in > httpd.conf: > > <code> > Starting httpd: [Mon Nov 01 22:37:13 2004] [error] Can't locate object > > method "server_root_relative" via package "Apache::Server" at > /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Apache/DProf.pm > > line 30.!Compilation failed in require at (eval 2) line 3.! > [Mon Nov 01 22:37:13 2004] [error] Can't load Perl module > Apache::DProf for server localhost:0, exiting...! > </code> > > Now, if I'm not mistaken, server_root_relative is in > Apache::ServerUtil. Looking at the relevant portion of DProf.pm, it > appears to handle the differences between Apache1 and Apache2 > correctly, so Apache::compat shouldn't be necessary (although I've > tried that too): I believe this is caused by a documentation bug I've yet to fix in Apache::DProf. Try preloading Apache2 in your startup.pl and it should work for you. If not feel free to contact me again and I'll help you get it sorted out. --------------------------------- Frank Wiles <[EMAIL PROTECTED]> http://www.wiles.org --------------------------------- -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html