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 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥30 python代码,帮调试,帮帮忙吧