linux-安装perlapi-5.8.8

我的问题是我想在ubuntu上安装libgtk-perl软件包,但由于未满足依赖项(即perlapi-5.8.8)而失败,我也尝试进行自动依赖项安装,但也失败了.问题在于它是一个虚拟软件包,即使安装了perl-base(如说明中所示),也无法安装perlapi.请谁能帮助我安装perlapu-5.8.8

adminuser@adminuser-VirtualBox:~$sudo apt-get install libgtk-perl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgtk-perl : Depends: perlapi-5.8.8
E: Unable to correct problems, you have held broken packages.
adminuser@adminuser-VirtualBox:~$sudo apt-get install perlapi-5.8.8
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package perlapi-5.8.8 is a virtual package provided by:
  perl-base 5.8.8-7 [Not candidate version]

E: Package 'perlapi-5.8.8' has no installation candidate
adminuser@adminuser-VirtualBox:~$sudo apt-get install perl-base
Reading package lists... Done
Building dependency tree        
Reading state information... Done
perl-base is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

解决方法:

您正在尝试使用Perl软件包Gtk.为此,您尝试安装使用Perl 5.8.8构建的二进制文件,这将需要您切换到Perl 5.8.8(或5.8.9).除了向前迈出一大步之外,如果不中断系统,您将无法做自己想做的事情.为Perl 5.8.8切换Perl会引起问题.

如果您的系统没有为您的Perl版本提供Perl模块Gtk的软件包,请按照以下步骤自己安装(在安装了必要的C库之后):

cpan Gtk
上一篇:将代码从使用XML :: XPath更改为XML :: LibXML


下一篇:linux-编写简单的bash(如命令提示符),支持自动完成(“处理”选项卡键)