Re: ModPerl::RegistryLoader doesn't compile from the command line

2006-08-18 Thread Max Kanat-Alexander
On Fri, 2006-08-18 at 14:03 -0400, Perrin Harkins wrote: > You can't do that. These are APIs to apache internals. They don't work > without the httpd environment. Ah, okay. Thanks for the explanation. Changing it to Apache2::ServerUtil->server_root would probably at least make it work at

Re: ModPerl::RegistryLoader doesn't compile from the command line

2006-08-18 Thread Perrin Harkins
On Fri, 2006-08-18 at 11:00 -0700, Max Kanat-Alexander wrote: > This is not a problem when Apache uses the module, only when you try to > compile a command-line script that uses ModPerl::RegistryLoader. You can't do that. These are APIs to apache internals. They don't work without the http

ModPerl::RegistryLoader doesn't compile from the command line

2006-08-18 Thread Max Kanat-Alexander
From any command line, try: perl -MModPerl::RegistryLoader At least in 2.0.1, that causes this error: Bareword "Apache2::ServerUtil::server_root" not allowed while "strict subs" in use at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/ModPerl/RegistryL