Linux
由於包依賴問題,無法安裝 phpMyAdmin
當我執行命令
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
它說沒有安裝包。
EPEL 與 Amazon Linux 不兼容,儘管 Amazon 奇怪地堅持建議人們將其添加到他們的 Amazon Linux 實例中。它不能兼容,即使你奇蹟般地從 EPEL 安裝了一個包,它也很可能無法執行。
如果您需要來自 EPEL 的軟體包,您必須使用兼容的 Linux 發行版,例如 CentOS 或 RHEL。