doushan3511 2017-09-18 21:13
浏览 393
已采纳

PHP-ODBC驱动程序安装问题

I'm banging my head on the keyboard... :-( I'm trying to install php-odbc so I can use the odbc_connect() functions that worked like a beauty on a WAMP install.

There seems to be a mass dependency rabbit hole and it won't let me install... I can't seem to figure out how to manually install the php-odbc that works with "pdo-5.6"

[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

Im on CentOS 7.3.1611 (Core) and PHP 5.6.30 using Sentora

Note this too:

[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

Please help!

  • 写回答

1条回答 默认 最新

  • duanjiwu0324 2017-09-19 05:31
    关注

    Installed: php-pdo-5.6.30-1.el7.remi.x86_64 (@remi-php56)

    You have installed php-pdo from remi-php56, so you need to install php-odbc from the same repository. As explained by the Wizard, simple way is to enable it permanently.

    yum install yum-utils
    yum-config-manager --enable remi-php56
    

    Having the repository enabled permanently will also allow you to take benefit of security update (latest version is 5.6.31).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突