doushan3511 2017-09-18 13: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-18 21: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).

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

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部