Centos7.9에 php_odbc를 설치하는 데 사용 가능한 소프트웨어 패키지가 없습니다.

Centos7.9에 php_odbc를 설치하는 데 사용 가능한 소프트웨어 패키지가 없습니다.

yum install을 사용하여 php_odbc를 설치하려고 합니다. 그러나 그것은 나에게 다음을 보여줍니다.

Loaded plugins: fastestmirror, universal-hooks
Determining fastest mirrors
epel/x86_64/metalink                                                                           |  39 kB  00:00:00
 * EA4: 103.72.162.35
 * cpanel-addons-production-feed: 103.72.162.35
 * cpanel-plugins: 103.72.162.35
 * base: mirror.netweaver.uk
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: mirror.launtel.net.au
 * updates: centos.mirrors.telekom.ro
EA4                                                                                            | 2.9 kB  00:00:00
cpanel-addons-production-feed                                                                  | 2.9 kB  00:00:00
cpanel-plugins                                                                                 | 2.9 kB  00:00:00
base                                                                                           | 3.6 kB  00:00:00
epel                                                                                           | 4.7 kB  00:00:00
extras                                                                                         | 2.9 kB  00:00:00
mysql-connectors-community                                                                     | 2.6 kB  00:00:00
mysql-tools-community                                                                          | 2.6 kB  00:00:00
mysql57-community                                                                              | 2.6 kB  00:00:00
updates                                                                                        | 2.9 kB  00:00:00
(1/13): cpanel-addons-production-feed/x86_64/primary_db                                        |  19 kB  00:00:00
(2/13): cpanel-plugins/x86_64/primary_db                                                       |  36 kB  00:00:00
(3/13): epel/x86_64/group_gz                                                                   |  95 kB  00:00:00
(4/13): epel/x86_64/updateinfo                                                                 | 1.0 MB  00:00:00
(5/13): EA4/7/x86_64/primary_db                                                                | 1.4 MB  00:00:00
(6/13): mysql-connectors-community/x86_64/primary_db                                           |  72 kB  00:00:00
(7/13): mysql-tools-community/x86_64/primary_db                                                |  85 kB  00:00:00
(8/13): mysql57-community/x86_64/primary_db                                                    | 258 kB  00:00:00
(9/13): epel/x86_64/primary_db                                                                 | 6.9 MB  00:00:00
(10/13): base/7/x86_64/group_gz                                                                | 153 kB  00:00:00
(11/13): extras/7/x86_64/primary_db                                                            | 224 kB  00:00:00
(12/13): base/7/x86_64/primary_db                                                              | 6.1 MB  00:00:01
(13/13): updates/7/x86_64/primary_db                                                           | 5.6 MB  00:00:03
No package php_odbc available.
Error: Nothing to do

yum clean을 모두 시도했지만 동일한 오류가 표시됩니다. 도움을 주시면 감사하겠습니다.

이는 php_odbc와 php-odbc의 철자가 틀린 것입니다. 하지만 아직 사용할 수 있는 패키지를 받지 못했습니다.

편집: 다음은 yum repolist의 출력입니다.

    [root@server ~]# yum repolist
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 103.72.162.35
 * cpanel-addons-production-feed: 103.72.162.35
 * cpanel-plugins: 103.72.162.35
 * base: miroir.univ-lorraine.fr
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: mirror.aktkn.sg
 * updates: mirrors.piconets.webwerks.in
repo id                                          repo name                                                  status
!EA4/7/x86_64                                    EA4 ( EasyApache 4 )                                        4,017+761
!cpanel-addons-production-feed/x86_64            cPanel Addons Production Feed                                      68
!cpanel-plugins/x86_64                           cPanel Plugins project                                             55
!base/7/x86_64                                   CentOS-7 - Base                                             10,032+40
!epel/x86_64                                     Extra Packages for Enterprise Linux 7 - x86_64             12,721+803
!extras/7/x86_64                                 CentOS-7 - Extras                                                 451
!mysql-connectors-community/x86_64               MySQL Connectors Community                                        185
!mysql-tools-community/x86_64                    MySQL Tools Community                                             123
!mysql57-community/x86_64                        MySQL 5.7 Community Server                                        484
!updates/7/x86_64                                CentOS-7 - Updates                                            1,635+5
repolist: 29,771

답변1

패키지 php-odbc이름은 밑줄이 아닌 하이픈입니다.

yum install php-odbc

관련 정보