正在加载中...

关闭
请选择需要拨打的号码
关闭
请根据问题类型选择QQ咨询

Webmin Error: Perl module Authen::错误的解决方法

Webmin Error: Perl module Authen::错误的解决方法

Webmin Error: Perl module Authen::PAM needed for PAM is not installed

webmin日志报错问题的处理方法

If you guys are getting this error on your Webmin log file /var/webmin/miniserv.error here’s how I solved the problem.

如果在webminminiserv.error中看到下面的错误

miniserv.pl started
Perl module Authen::PAM needed for PAM is not installed : Can't locate Authen/PAM.pm in @INC (@INC contains: /usr/libexec/webmin /usr/lib64/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/local/lib/perl5/site_perl /usr/lib/perl5/site_perl .) at (eval 10) line 1.
BEGIN failed--compilation aborted at (eval 10) line 1.

First off go to http://nik.pelov.name/Authen-PAM/ and download the latest Authen::PAM. At the time of this writing, the lastest one was Authen-PAM-0.16.

Log in as root.

先用root登录

su -

Then go to /tmp and place the file there.然后进入/tmp目录下载Authen-PAM

cd /tmp
wget http://www.perl.com/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-0.16.tar.gz

Next step would be extracting the contents of Authen-PAM-0.16.tar.gz.

然后解压缩

tar xvzf Authen-PAM-0.16.tar.gz

After that, go to Authen-PAM-0.16 which is the directory that is created once you’ve extracted the contents of Authen-PAM-0.16.tar.gz.

进入解压缩后的目录

cd Authen-PAM-0.16

We’ll then generate a make file.编译文件

perl Makefile.PL

If it returned no errors we can then proceed to executing the following commands.

make
make install
如果没错,就可以继续

After that everything should be fine now. To check whether the module has been loaded or not do the following command.

可以用下面的命令检查是不是正常了

perl -e 'use Authen::PAM; print "Installation succestul.\n"'

After that restart Webmin.

然后重启webmin

service webmin restart

If you look at your /var/webmin/miniserv.error this is what you should see if everything worked out fine.

如果你在miniserv.error中看到下面的日志记录,就说明没问题了。

restarting miniserv
Restarting
miniserv.pl started
PAM authentication enabled

返回上一页