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

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!

图片转代码服务由CSDN问答提供 功能建议

我正在敲打键盘...... :-(我正在尝试安装php-odbc 所以我可以使用odbc_connect()函数在WAMP安装中像美女一样工作。

似乎有一个大规模依赖兔子洞,它不会让我安装...... 我似乎无法弄清楚如何手动安装适用于“pdo-5.6”的php-odbc

  [root @ panel /] #yum install php-odbc  
加载的插件:fastermirror 
从缓存的主机文件加载镜像速度
 * epel:mirrors.cat.pdx.edu 
 * remi-safe:repo1.sea.innoscale.net 
Resolving Dependencies 
  - >运行事务检查 
 --->将安装软件包php-odbc.x86_64 0:5.4.16-42.el7 
  - >处理依赖项:php-pdo(x86-64)= 5.4.16-42.el7  for package:php-odbc-5.4.16-42.el7.x86_64 
  - >完成的依赖关系解析
错误:包:php-odbc-5.4.16-42.el7.x86_64(base)
需要:  php-pdo(x86-64)= 5.4.16-42.el7 
已安装:php-pdo-5  .6.30-1.el7.remi.x86_64(@ remi-php56)
 php-pdo(x86-64)= 5.6.30-1.el7.remi 
可用:php-pdo-5.4.16-42。  el7.x86_64(base)
 php-pdo(x86-64)= 5.4.16-42.el7 
您可以尝试使用--skip-broken解决问题
您可以尝试运行:rpm -Va  --nofiles --nodigest 
   
 
 

我在CentOS 7.3.1611(核心)和PHP 5.6.30使用Sentora

请注意这一点:

  [root @ panel /] #yum install php-pdo 
Loaded plugins:fastermirror 
从缓存的主机文件加载镜像速度
 * epel:mirrors.cat  .pdx.edu 
 * remi-safe:repo1.sea.innoscale.net 
已经安装了匹配php-pdo-5.4.16-42.el7.x86_64的包。 检查更新。
无所事事
   
 
 

请帮助!

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

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).

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题