当我运行该命令时sudo yum --enablerepo=epel install phpmyadmin
,它返回以下包依赖性错误:
Error: Package: php-mcrypt-5.3.3-5.el6.x86_64 (epel)
Requires: php(api) = 20090626
Installed: php-common-5.4.16-45.amzn2.0.6.x86_64 (@amzn2-core)
php(api) = 20100412-64
Available: php-common-5.4.16-43.amzn2.x86_64 (amzn2-core)
php(api) = 20100412-64
Available: php-common-5.4.16-43.amzn2.0.1.x86_64 (amzn2-core)
php(api) = 20100412-64
Available: php-common-5.4.16-43.amzn2.0.2.x86_64 (amzn2-core)
php(api) = 20100412-64
Available: php-common-5.4.16-43.amzn2.0.3.x86_64 (amzn2-core)
php(api) = 20100412-64
Available: php-common-5.4.16-43.amzn2.0.4.x86_64 (amzn2-core)
php(api) = 20100412-64
Available: php-common-5.4.16-45.amzn2.0.5.x86_64 (amzn2-core)
php(api) = 20100412-64
Error: Package: php-mcrypt-5.3.3-5.el6.x86_64 (epel)
Requires: php(zend-abi) = 20090626
Installed: php-common-5.4.16-45.amzn2.0.6.x86_64 (@amzn2-core)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-43.amzn2.x86_64 (amzn2-core)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-43.amzn2.0.1.x86_64 (amzn2-core)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-43.amzn2.0.2.x86_64 (amzn2-core)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-43.amzn2.0.3.x86_64 (amzn2-core)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-43.amzn2.0.4.x86_64 (amzn2-core)
php(zend-abi) = 20100525-64
Available: php-common-5.4.16-45.amzn2.0.5.x86_64 (amzn2-core)
php(zend-abi) = 20100525-64
Error: Package: php-tcpdf-6.2.26-1.el6.noarch (epel)
Requires: php-tidy
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我需要安装什么才能使 myphpadmin 能够正确下载?
我的 php 版本是 5.4.16(显然),如果我运行,rpm -q phpmyadmin
它会说该包未安装。
答案1
尽管亚马逊坚持建议人们将 EPEL 添加到他们的 Amazon Linux 实例中,但 EPEL 与 Amazon Linux 不兼容。它无法兼容,即使你奇迹般地从 EPEL 安装了软件包,它也很可能无法运行。
如果您需要来自 EPEL 的软件包,则必须使用兼容的 Linux 发行版,例如 CentOS 或 RHEL。