我正在敲击键盘...... :(我正在尝试安装php-odbc,因此我可以使用odbc_connect()函数,这些函数就像WAMP安装中的美女一样。
似乎有一个大规模依赖兔子洞,它不会让我安装......我似乎无法弄清楚如何手动安装与“pdo-5.6”一起使用的php-odbc
[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
请帮忙!
答案 0 :(得分:1)
已安装: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)。