Hi, Alex
> Sorry about emailing you personally, but I tried the mod_perl list with
> no success.
> I'm trying to get Apache::VMonitor to load on a new mod_perl 1.23/Apache
> 1.3.12/perl 5.005_03 installation. mod_perl is up and running fine,
> however I can't get Apache::VMonitor working. If I add
>
> use Apache::VMonitor;
>
> to my startup file, I can't start httpd, I get:
>
> [root@alex apache_perl]# perlctl start
> [Wed Apr 26 16:13:45 2000] [error] Can't locate loadable object for module
>Apache::Util in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux
>/usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux
>/usr/lib/perl5/site_perl/5.005 . /usr/local/apache_perl/
>/usr/local/apache_perl/lib/perl) at
>/usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pm line 65535
> BEGIN failed--compilation aborted at
>/usr/lib/perl5/site_perl/5.005/Apache/VMonitor.pm line 10.
> BEGIN failed--compilation aborted at /usr/local/apache_perl/startup.pl line 11.
>
> Syntax error on line 38 of /usr/local/apache_perl/conf/httpd.conf:
> Can't locate loadable object for module Apache::Util in @INC (@INC contains:
>/usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503
>/usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .
>/usr/local/apache_perl/ /usr/local/apache_perl/lib/perl) at
>/usr/lib/perl5/site_perl/5.005/i386-linux/mod_perl.pm line 65535
> BEGIN failed--compilation aborted at
>/usr/lib/perl5/site_perl/5.005/Apache/VMonitor.pm line 10.
> BEGIN failed--compilation aborted at /usr/local/apache_perl/startup.pl line 11.
>
> /usr/local/apache_perl/bin/perlctl start: httpd could not be started
> [root@alex apache_perl]#
>
> Apache::Util is installed, and everything else seems to work..
>
> Any ideas where to look?
>
> Cheers,
>
> Alex
>
I'm sorry, I was away and didn't have a chance to answer mod_perl emails
yet. I saw your post at the list.
It seems that you and me have the same system. Mine is linux RH6.1
apache1.13 mod_perl1.23 perl5.005_03. And it works Ok.
Your problem has nothing to do with Apache::VMonitor, since it relies on
Apache::Util to work. You should post a proper bug report to the list. By
proper I mean asking for help with Apache::Util and not Apache::VMonitor,
so the right people will look into it.
You should try this script:
my $r = Apache->request;
$r->send_http_header("text/html");
use Apache::Util ();
print Apache::Util::escape_html("<code>");
If this doesn't produce "<code>" and produces the same errors, you have
some problem with Apache::Util. Did 'make test' pass Ok when you have
installed mod_perl?
______________________________________________________________________
Stas Bekman | JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ | mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] | http://perl.org http://stason.org/TULARC/
http://singlesheaven.com| http://perlmonth.com http://sourcegarden.org
----------------------------------------------------------------------