我是Perl的新手。我正在尝试根据此(http://docs.activestate.com/komodo/4.4/debugperl.html)在Komodo IDE中设置Apache Debugger。但是,重新启动httpd时(在CentOS中)我收到以下错误消息:
Aug 27 17:07:30 local httpd[5345]: Can't locate loadable object for module Apache::DB i
n @INC (@INC contains: /media/sf_perllib /data/lib/modules /data/affinitylive/modules
/data/www/majorprojects.planning.nsw.gov.au/modules /data/www/mpgp.nsw.gov.au/modules /d
ata/breakwater/lib/modules /opt/perl-5.22.0/lib/site_perl/5.22.0/x86_64-linux-thread-mu
lti /opt/perl-5.22.0/lib/site_perl/5.22.0 /opt/perl-5.22.0/lib/5.22.0/x86_64-linux-thre
ad-multi /opt/perl-5.22.0/lib/5.22.0 . /etc/httpd) at
/etc/httpd/conf/httpd.conf line 55.\nCompilation failed in require at
/etc/httpd/conf/httpd.conf line 55.\nBEGIN failed--compilation aborted
Apache / DB模块确实存在于/opt/perl-5.22.0/lib/site_perl/5.22.0中。请看下面的截图:
Httpd config:
<Perl>
use ModPerl::Registry;
use lib qw(/media/sf_perllib);
$ENV{PERLDB_OPTS} = "RemotePort=192.168.0.38:12346 LogFile=stderr";
use Apache::DB ();
Apache::DB->init;
</Perl>