1

我已经使用 CPAN 安装了 LDAP.pm:

install Authen::Simple::LDAP

我尝试在 Apache 中加载模块:

PerlLoadModule Authen::Simple::LDAP

每当我尝试启动服务器时,都会收到一条错误消息:

Syntax error on line 285 of /etc/httpd/conf/httpd.conf:
Attempt to reload Authen/Simple/LDAP.pm aborted.\nCompilation failed in require at (eval 12) line 3.\n

我的 httpd 配置文件的第 285 行:

PerlLoadModule Authen::Simple::LDAP

LDAP perl 模块的安装有问题吗?还有其他方法可以安装此模块吗?我是否缺少任何其他模块,我如何知道哪些模块?

附加信息:运行

perl -MAuthen::Simple::LDAP -e ''

回报:

Bareword "Params::Validate::SCALAR" not allowed while "strict subs" in use at /usr/local/share/perl5/Authen/Simple/Adapter.pm line 42.
Bareword "Params::Validate::SCALAR" not allowed while "strict subs" in use at /usr/local/share/perl5/Authen/Simple/Adapter.pm line 42.
Compilation failed in require at (eval 2) line 3.
...propagated at /usr/share/perl5/base.pm line 94.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Authen/Simple/LDAP.pm line 5.
Compilation failed in require.
BEGIN failed--compilation aborte
4

0 回答 0