【问题标题】:Installing perlapi-5.8.8安装 perlapi-5.8.8
【发布时间】:2015-12-09 15:24:11
【问题描述】:

我的问题是我想在 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.

【问题讨论】:

  • 如果您使用仍受支持的 ubuntu 版本,您可能会获得更大的成功。 5.8.8 一定是 Ubuntu 8.04/8.10,它已经有 7 年的历史了,而且很久没有支持了。据我所知,文件已从官方 ubuntu 服务器中删除,因此您将无法再从那里下载软件包。
  • @SteffenUllrich 和libgtk-perl 几乎肯定适用于更老的 GTK 1.x。 GTK 2.0 于 2002 年问世。
  • 嗯,基本上我需要 perlapi-5.8.8,我使用的是 ubuntu 14.04。我需要 if 来运行 virtuoso
  • 不要提供使用 libgtk2-perl 的版本?这就是最新版本的 Ubuntu 所使用的。

标签: linux perl ubuntu perl-module


【解决方案1】:

您正在尝试使用 Perl 包 Gtk。为此,您尝试安装使用 Perl 5.8.8 构建的二进制文件,这需要您切换到 Perl 5.8.8(或 5.8.9)。除了是一个重大的倒退,你不能做你想做的事而不破坏你的系统。将 Perl 切换到 Perl 5.8.8 会导致问题。

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

cpan Gtk

【讨论】:

  • 这是我得到的错误 make[1]: *** [xs/Gtk-1.2.o] 错误 1 ​​make[1]: Leaving directory `/home/adminuser/.cpan/ build/Gtk-Perl-0.7010-2YVCBV/Gtk' make: *** [subdirs] Error 2 MLEHMANN/Gtk-Perl-0.7010.tar.gz /usr/bin/make -- 不行
  • 你能不能解释一下找不到出路
  • 该消息表示make 无法生成xs/Gtk-1.2.o。出路是查看您在尝试生成xs/Gtk-1.2.o 时遇到的错误。
猜你喜欢
  • 2019-05-05
  • 1970-01-01
  • 1970-01-01
  • 2018-08-16
  • 2011-10-17
  • 1970-01-01
  • 2014-05-13
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多