Centos

嘗試了 php 安裝並顯示錯誤包 php-7.3.17-1.el7.remi.x86_64 (remi-php73)

  • April 24, 2020

我在 vagrant 中嘗試了「sudo yum –enablerepo=remi-php73 install php-pdo php-mysql」並顯示

             Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
  error: package: php-7.3.17-1.el7.remi.x86_64 (remi-php73)
             Requires: httpd-mmn = 20120211x8664
           install: httpd-2.2.15-69.el6.centos.x86_64 (@base)
               httpd-mmn = 20051115
  error: package: php-mysqlnd-7.3.17-1.el7.remi.x86_64 (remi-php73)
            Requires: libc.so.6(GLIBC_2.15)(64bit)
  error: package: php-cli-7.3.17-1.el7.remi.x86_64 (remi-php73)
            Requires: libcrypto.so.10(OPENSSL_1.0.2)(64bit)
  error: package: php-cli-7.3.17-1.el7.remi.x86_64 (remi-php73)
            Requires: libc.so.6(GLIBC_2.15)(64bit)
  error: package: php-json-7.3.17-1.el7.remi.x86_64 (remi-php73)
            Requires: libc.so.6(GLIBC_2.14)(64bit)
  error: package: php-common-7.3.17-1.el7.remi.x86_64 (remi-php73)
            Requires: libc.so.6(GLIBC_2.15)(64bit)
  error: package: php-pdo-7.3.17-1.el7.remi.x86_64 (remi-php73)
            Requires: libc.so.6(GLIBC_2.14)(64bit)
  error: package: php-7.3.17-1.el7.remi.x86_64 (remi-php73)
            Requires: libc.so.6(GLIBC_2.15)(64bit)

  You couldn't try using--skip-broken to work around the problem
  You could try runnning: rpm -Va --nofiles --nodigest

PHP 7.3.17 CentOS 6.10 版(最終版)

我不知道我必須做什麼。請給我建議….

error: package: php-7.3.17-1.el7.remi.x86_64 (remi-php73)
  install: httpd-2.2.15-69.el6.centos.x86_64 (@base)

您正在嘗試在CentOS 6發行版上安裝CentOS 7軟體包。

當然,這是行不通的。

請仔細遵循嚮導的說明。

引用自:https://serverfault.com/questions/1013910