PHP-ODBC 驱动程序安装问题
PHP-ODBC Driver Install Issue
我正在敲键盘... :-( 我正在尝试安装 php-odbc 这样我就可以使用 odbc_connect() 函数WAMP 安装的美丽。
似乎有一个大量依赖的兔子洞,它不会让我安装...我似乎无法弄清楚如何手动安装与 [= 一起使用的 php-odbc 23=]
[root@panel /]# yum install php-odbc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirrors.cat.pdx.edu
* remi-safe: repo1.sea.innoscale.net
Resolving Dependencies
--> Running transaction check
---> Package php-odbc.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.4.16-42.el7 for package: php-odbc-5.4.16-42.el7.x86_64
--> Finished Dependency Resolution
Error: Package: php-odbc-5.4.16-42.el7.x86_64 (base)
Requires: php-pdo(x86-64) = 5.4.16-42.el7
Installed: php-pdo-5.6.30-1.el7.remi.x86_64 (@remi-php56)
php-pdo(x86-64) = 5.6.30-1.el7.remi
Available: php-pdo-5.4.16-42.el7.x86_64 (base)
php-pdo(x86-64) = 5.4.16-42.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我在 CentOS 7.3.1611(核心)和 PHP 5.6.30 上使用 Sentora
也请注意:
[root@panel /]# yum install php-pdo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirrors.cat.pdx.edu
* remi-safe: repo1.sea.innoscale.net
Package matching php-pdo-5.4.16-42.el7.x86_64 already installed. Checking for update.
Nothing to do
请帮忙!
Installed: php-pdo-5.6.30-1.el7.remi.x86_64 (@remi-php56)
您已经从remi-php56安装了php-pdo,所以您需要安装php-odbc 来自同一个存储库。正如 Wizard 所解释的,简单的方法是永久启用它。
yum install yum-utils
yum-config-manager --enable remi-php56
永久启用存储库还可以让您利用安全更新(最新版本是 5.6.31)。
我正在敲键盘... :-( 我正在尝试安装 php-odbc 这样我就可以使用 odbc_connect() 函数WAMP 安装的美丽。
似乎有一个大量依赖的兔子洞,它不会让我安装...我似乎无法弄清楚如何手动安装与 [= 一起使用的 php-odbc 23=]
[root@panel /]# yum install php-odbc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirrors.cat.pdx.edu
* remi-safe: repo1.sea.innoscale.net
Resolving Dependencies
--> Running transaction check
---> Package php-odbc.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.4.16-42.el7 for package: php-odbc-5.4.16-42.el7.x86_64
--> Finished Dependency Resolution
Error: Package: php-odbc-5.4.16-42.el7.x86_64 (base)
Requires: php-pdo(x86-64) = 5.4.16-42.el7
Installed: php-pdo-5.6.30-1.el7.remi.x86_64 (@remi-php56)
php-pdo(x86-64) = 5.6.30-1.el7.remi
Available: php-pdo-5.4.16-42.el7.x86_64 (base)
php-pdo(x86-64) = 5.4.16-42.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
我在 CentOS 7.3.1611(核心)和 PHP 5.6.30 上使用 Sentora
也请注意:
[root@panel /]# yum install php-pdo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: mirrors.cat.pdx.edu
* remi-safe: repo1.sea.innoscale.net
Package matching php-pdo-5.4.16-42.el7.x86_64 already installed. Checking for update.
Nothing to do
请帮忙!
Installed: php-pdo-5.6.30-1.el7.remi.x86_64 (@remi-php56)
您已经从remi-php56安装了php-pdo,所以您需要安装php-odbc 来自同一个存储库。正如 Wizard 所解释的,简单的方法是永久启用它。
yum install yum-utils
yum-config-manager --enable remi-php56
永久启用存储库还可以让您利用安全更新(最新版本是 5.6.31)。