我刚刚在 Ubuntu Server 12.04 上从 .deb 文件安装了 webmin,一切顺利。
我登录了 Web 界面并查看了“Perl 模块”页面。有一个建议的模块但未安装。我选择了它并按下安装,然后出现以下错误:
Making, testing and installing Authen::Libwrap ..
Untarring module file
Executing gunzip -c /tmp/.webmin/Authen-Libwrap-0.22.tar.gz | tar xvf - ..
Authen-Libwrap-0.22
Authen-Libwrap-0.22/Build.PL
Authen-Libwrap-0.22/ChangeLog
Authen-Libwrap-0.22/example.pl
Authen-Libwrap-0.22/Makefile.PL
Authen-Libwrap-0.22/MANIFEST
Authen-Libwrap-0.22/META.yml
Authen-Libwrap-0.22/ppport.h
Authen-Libwrap-0.22/README
Authen-Libwrap-0.22/lib
Authen-Libwrap-0.22/lib/Authen
Authen-Libwrap-0.22/lib/Authen/Libwrap.pm
Authen-Libwrap-0.22/lib/Authen/Libwrap.xs
Authen-Libwrap-0.22/t
Authen-Libwrap-0.22/t/01_inline.t
Authen-Libwrap-0.22/t/02_maintainer.t
Authen-Libwrap-0.22/t/03_pod.t
Authen-Libwrap-0.22/t/hosts.allow
Compiling module
Executing /usr/bin/perl Makefile.PL && make ..
# running Build.PL
enter include directory to use: [/usr/include ]/usr/include
enter library directory to use: [/usr/lib ]/usr/lib
Warning: ExtUtils::CBuilder not installed or no compiler detected
Proceeding with configuration, but compilation may fail during Build
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Authen-Libwrap' version '0.22'
/usr/bin/perl Build --makefile_env_macros 1
Building Authen-Libwrap
Error: Function definition too short '/ * EOF * /' in Libwrap.xs, line 32
Error: no compiler detected to compile 'lib/Authen/Libwrap.c'. Aborting
make: *** [all] Error 255
Installation of Authen::Libwrap failed. Check the output above and try installing manually.
You can also install the module from CPAN with the command perl -MCPAN -e shell.
ExtUtils::CBuilder
我认为我已经从 cpan 命令行成功安装,但在安装“Authen-LibWrap”时仍然出现相同的错误。
有人可以帮忙吗?
答案1
Ubuntu 需要安装这些才能运行:
sudo apt-get install libwrap0 libwrap0-dev