无法安装php 5.6 mssql-Centos 7 [英] Failed to install php 5.6 mssql - Centos 7

查看:92
本文介绍了无法安装php 5.6 mssql-Centos 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Windows Web服务器上运行的应用程序移动到Centos 7上运行的linux Web服务。
该应用程序基于调用Microsoft SQL过程,并且我使用了sqlsrv驱动程序当我将其构建时。但是现在,当我将其移至新服务器时,由于sqlsrv驱动程序,它显然无法正常工作,因为我所阅读的内容不受Linux的支持。

i'm trying to move an application that was running on an windows web server to a linux web serve which runs on Centos 7. The application it's based on calling Microsoft SQL Procedures and i've used sqlsrv driver when i've built it.But now when i've moved it to the new server obviously it's not working becaouse sqlsrv driver it's not supported by linux from what i've read.

问题是我试图安装php-mssql以便重写我的代码以使用该驱动程序,但是我无法使用PHP 5.6.13在Centos 7上安装该软件包。当我尝试安装软件包时,我得到以下内容,但我不知道如何解决它或走得更远:

The problem is that i'm trying to install php-mssql in order to re-write my code to use this driver but i cannot install the package on Centos 7 using PHP 5.6.13. When i try to install the package i get the following and i don't know how to fix it or to go further :

[root@localhost /]# yum install php56w-mssql
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.ines.lug.ro
* epel: fedora.mirrors.telekom.ro
* extras: ftp.ines.lug.ro
* updates: ftp.ines.lug.ro
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php56w-mssql.x86_64 0:5.6.13-1.w7 will be installed
--> Processing Dependency: php56w-pdo(x86-64) = 5.6.13-1.w7 for package: php56w-mssql-5.6.13-1.w7.x86_64
--> Processing Dependency: libsybdb.so.5()(64bit) for package: php56w-mssql-5.6.13-1.w7.x86_64
--> Running transaction check
---> Package freetds.x86_64 0:0.91-12.git0a42888.el7 will be installed
--> Processing Dependency: libodbcinst.so.2()(64bit) for package: freetds-0.91-12.git0a42888.el7.x86_64
--> Processing Dependency: libodbc.so.2()(64bit) for package: freetds-0.91-12.git0a42888.el7.x86_64
---> Package php56w-pdo.x86_64 0:5.6.13-1.w7 will be installed
--> Processing Dependency: php56w-common(x86-64) = 5.6.13-1.w7 for package: php56w-pdo-5.6.13-1.w7.x86_64
--> Running transaction check
---> Package php56w-common.x86_64 0:5.6.13-1.w7 will be installed
---> Package unixODBC.x86_64 0:2.3.1-10.el7 will be installed
--> Processing Dependency: libltdl.so.7()(64bit) for package: unixODBC-2.3.1-10.el7.x86_64
--> Running transaction check
---> Package libtool-ltdl.x86_64 0:2.4.2-20.el7 will be installed
Removing php56w-pdo.x86_64 0:5.6.13-1.w7 - u due to obsoletes from installed php-pdo-5.6.13-1.el7.remi.x86_64
Removing php56w-common.x86_64 0:5.6.13-1.w7 - u due to obsoletes from installed php-common-5.6.13-1.el7.remi.x86_64
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package php56w-common.x86_64 0:5.6.13-1.w7 will be installed
---> Package php56w-pdo.x86_64 0:5.6.13-1.w7 will be installed
--> Processing Dependency: php56w-pdo(x86-64) = 5.6.13-1.w7 for package: php56w-mssql-5.6.13-1.w7.x86_64
--> Finished Dependency Resolution
Error: Package: php56w-mssql-5.6.13-1.w7.x86_64 (webtatic)
       Requires: php56w-pdo(x86-64) = 5.6.13-1.w7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

您有任何建议吗?

谢谢

推荐答案

根据输出,从未启用的 remi-php56安装PHP(默认情况下)。启用它的好主意,以避免此类问题。

According to output, PHP is installed from "remi-php56" which is not enabled (by default). Good idea to enable it, to avoid such issues.

yum-config-manager --enable remi-php56

然后

yum install php-mssql

这是混合各种第三方存储库的可怕想法。因此,@ machavity建议从webtatic中排除php软件包是正确的。

And terrible idea to mix various 3rd party repositories. So @machavity proposal to exclude php packages from webtatic is correct.

这篇关于无法安装php 5.6 mssql-Centos 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆