问题描述
CentOS 7刚开始使用ODBC Driver 13,效果很好.几个星期前,版本17出现了,并且与寻找版本13的PHP驱动程序产生了冲突,重新安装.
CentOS 7Just started using the ODBC Driver 13 and it worked great. A couple of weeks ago version 17 came out and creates conflicts with PHP drivers looking for version 13 with a fresh install.
在安装新的CentOS 7时,我明确安装了13,但是当我尝试安装php_sqlsrv时,它尝试将msodbcsql更新为17(并且失败了,但我还是不想要它).
With a new CentOS 7 install I installed 13 explicitly but when I try to install php_sqlsrv it trys to update msodbcsql to 17 (and fails but I didnt want it anyway).
如何使用正确的php驱动程序安装版本13?
How can I install version 13 with the correct php driver?
谢谢,织机
推荐答案
结果是php_sqlsrv 4.3.*(当前稳定)安装会尝试将msodbcsql更新为17.问题是php_sqlsrv必须为5以上才能与msodbcsql一起使用17但它并没有稳定发布.
Turns out php_sqlsrv 4.3.* (current stable) install will try to update msodbcsql to 17. The problem is php_sqlsrv needs to be 5+ to work with msodbcsql 17 but it is not released as stable.
Ran:
sudo ACCEPT_EULA=Y yum install msodbcsql-13.1.9.1-1 mssql-tools-14.0.2.0-1
然后将以下内容添加到/etc/yum.conf中以阻止更新:
Then added the following to /etc/yum.conf to block updates:
exclude=msodbcsql
然后跑了
sudo /opt/sasbin/prox yum install php-sqlsrv-4.3.0
一切似乎都井井有条.
-织布机
这篇关于新的Microsoft ODBC驱动程序17破坏了LAMP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!