我已经下载了公共事务委员会经理但是当我尝试yum install
这样做时,最后出现依赖错误:
Error: Package: pac-4.5.5.5-2.x86_64 (/pac-4.5.5.5-2.x86_64)
Requires: perl(Gnome2::GConf)
Error: Package: pac-4.5.5.5-2.x86_64 (/pac-4.5.5.5-2.x86_64)
Requires: perl(Gtk2::GladeXML)
Error: Package: pac-4.5.5.5-2.x86_64 (/pac-4.5.5.5-2.x86_64)
Requires: perl-Crypt-Blowfish
Error: Package: pac-4.5.5.5-2.x86_64 (/pac-4.5.5.5-2.x86_64)
Requires: perl(Net::ARP)
Error: Package: pac-4.5.5.5-2.x86_64 (/pac-4.5.5.5-2.x86_64)
Requires: perl-IO-Stty
我不知道如何满足这些依赖关系,因为它们在我的存储库中不可用(列表如下)。我还没有在网络上找到任何可行的解决方案。
我尝试了上一篇文章中的解决方案这个 CentOS 论坛主题,但我无法安装Pango
并出现cpan
以下错误:
Pre-requisites not found:
Can't locate Cairo.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 11) line 1.
BEGIN failed--compilation aborted at (eval 11) line 1.
Please install them manually.
No 'Makefile' created XAOC/Pango-1.226.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Failed during this command:
XAOC/Pango-1.226.tar.gz : writemakefile NO -- No 'Makefile' created
我不知道如何解决。我还尝试通过cpan
软件包安装佩尔蒙克斯。当我省略Pango
并尝试时Gtk2
,它说缺少的依赖项是Pango
和Glib
。我Glib
通过安装过程中没有出现错误cpan
。
我有以下存储库:
repo id repo name status
adobe-linux-x86_64 Adobe Systems Incorporated 2
atrpms/7/x86_64 Red Hat Enterprise Linux 7 - x86_64 - ATrpms 827
base/7/x86_64 CentOS-7 - Base 8,652
centosplus/7/x86_64 CentOS-7 - Plus 43
elrepo ELRepo.org Community Enterprise Linux Reposit 150
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_6 8,305
extras/7/x86_64 CentOS-7 - Extras 149
gf/x86_64 Ghettoforge packages that won't overwrite cor 91
google-chrome google-chrome 3
nux-dextop/x86_64 Nux.Ro RPMs for general desktop use 1,962
remi Les RPM de remi pour Enterprise Linux 7 - x86 2,112
remi-debuginfo/x86_64 Les RPM de remi pour Enterprise Linux 7 - x86 784
remi-php55 Les RPM de remi de PHP 5.5 pour Enterprise Li 299
remi-php55-debuginfo/x86_64 Les RPM de remi de PHP 5.5 pour Enterprise Li 199
remi-php56 Les RPM de remi de PHP 5.6 pour Enterprise Li 302
remi-php56-debuginfo/x86_64 Les RPM de remi de PHP 5.6 pour Enterprise Li 200
remi-safe Safe Remi's RPM repository for Enterprise Lin 131
remi-test Les RPM de remi en test pour Enterprise Linux 384
remi-test-debuginfo/x86_64 Les RPM de remi en test pour Enterprise Linux 116
rpmforge RHEL 7 - RPMforge.net - dag 245
updates/7/x86_64 CentOS-7 - Updates 967
virtualbox/7/x86_64 Oracle Linux / RHEL / CentOS-7 / x86_64 - Vir 8
我想我已经提供了尽可能多的细节,但如果我遗漏了任何信息,我会添加任何遗漏的信息。
由于缺乏信誉,并非所有 URL 都作为 URL 链接
编辑:
在我满足Glib
dependency:后Test::ConsistentVersion
,它完全安装并Gtk2
仅显示Pango
缺失。
当我尝试安装Pango
via时cpan
,它返回:
Running install for module 'Pango'
Running make for X/XA/XAOC/Pango-1.226.tar.gz
Has already been unwrapped into directory /root/.cpan/build/Pango-1.226-H8GEMA
No 'Makefile' created
, won't make
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
仅此而已,所以我不知道下一步该去哪里。
答案1
昨天我也遇到了同样的问题。
我最终找到了一个不错的 yum 存储库,其中包含 pac-manager 所需的所有缺少的依赖项:适用于一般桌面用途的 Nux.Ro RPM
该存储库正在提供其安装程序,因此您应该能够:
$ cd /tmp
$ wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
$ sudo yum install -y nux-dextop-release-0-5.el7.nux.noarch.rpm
$ sudo yum install pac
由于 yum 的代理错误,我最终手动获取所有缺失的软件包并手动安装它们,直到满足依赖关系为止。包含以下列表(全部位于存储库中):
- perl-Gnome2-VFS-1.082-1.el7.nux.x86_64.rpm
- perl-Gtk2-Unique-0.05-10.el7.nux.x86_64.rpm
- perl-Gtk2-Ex-Simple-List-0.50-19.el7.nux.noarch.rpm
- perl-IO-Stty-0.03-10.el7.nux.noarch.rpm
- perl-Crypt-Blowfish-2.12.001-5.el7.nux.x86_64.rpm
- perl-Net-ARP-1.0.9-1.el7.nux.x86_64.rpm
- perl-Gnome2-Canvas-1.002-24.el7.nux.x86_64.perl
- Gnome2-1.045-1.el7.nux.x86_64.rpmrpm
答案2
尝试下面的方法
下载 TAR 文件:pac-4.5.5.5-all.tar.gz
解压 TAR 文件:
tar -xvzf pac-4.5.5.5-all.tar.gz
注意:这将创建一个名为pac
执行以下命令:
sudo yum install perl-YAML.noarch
sudo yum install uuid-perl.x86_64
sudo yum install perl-Crypt-CBC.noarch
sudo yum install gtk2.x86_64
sudo yum install gtk2-devel.x86_64
sudo yum install perl-CPAN.noarch
通过键入以下内容在新终端中启动 CPAN:
sudo cpan (important: start CPAN ar root)
在 CPAN shell 中输入:
yes
install Test::More
install ExtUtils::PkgConfig
install ExtUtils::Depends
让 CPAN shell 打开并切换到另一个终端窗口
执行以下命令:
sudo yum install glib2-devel.x86_64
sudo yum install pango-devel.x86_64
sudo yum install epel-release.noarch
sudo yum clean all
sudo yum makecache
sudo yum install unique-devel.x86_64
sudo yum install GConf2-devel.x86_64
sudo yum install libglade2-devel.x86_64
sudo yum install perl-Socket6.x86_64
切换回 CPAN shell 并输入:
install Cairo
install Pango
install Gtk2
install Gtk2::Unique
install Net:ARP
install Crypt::Rijndael
install Crypt::Blowfish
install Gtk2::Ex::Simple::List
此操作将会失败,因此您需要进行一些编辑。
切换到新的终端窗口
sudo su
cd /.cpan/build/Genome2-GConf-1.044-iKcoAq/xs
vi GConfEngine.xs
向下滚动到以以下内容开头的行:##gboolean gconf_engine_key_is_writable (...)
删除行,直到以以下内容开头的行:guint
在该行上方保留一个空行:guint
保存文件并退出
cd ..
make clean
perl Makefile.PL
make
在这里,您应该[b]仅[/b]收到 2 条警告。如果有任何其他消息,您应该返回到vi
上面的编辑步骤(使用 )并检查您的编辑。记得在该行上方留下空行guint
!
完成后,返回 CPAN shell 并继续:
install Gtk2::Ex::Simple::List
install Gnome2::GConf
install Gtk2::GladeXML
cd pac
./pac
答案3
以下是一些更新的说明2018年安装PAC经理在 Centos 7 中最小:
#!/bin/sh
yum install -y wget
wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install -y nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install -y pac perl-Digest-SHA perl-XML-Parser perl-Gnome2-Vte
find /opt/pac -name Vte.so* -exec rm {} \;
& 从菜单或通过终端运行pac