我正在尝试在 RHEL7 中设置 php-mssql。 freetds
在默认 RHEL repo 中不可用,因此我启用了epel
如下功能:
rpm -Uvh http://mirror.oss.ou.edu/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum install freetds
得出的结果是:
Error: Package: freetds-0.91-2.el6.x86_64 (epel)
Requires: libgnutls.so.26()(64bit)
Error: Package: freetds-0.91-2.el6.x86_64 (epel)
Requires: libgnutls.so.26(GNUTLS_1_4)(64bit)
gnutls-3.3.8-12.el7_1.1.x86_64
默认 安装 RHEL 。
有穿过树林的路吗?
答案1
虽然不是最理想的,但这似乎有效。
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php56w php56w-common
wget ftp://rpmfind.net/linux/epel/7/x86_64/f/freetds-0.95.19-1.el7.x86_64.rpm
yum install freetds-0.95.19-1.el7.x86_64.rpm
yum install php56w-mssql
# success
答案2
epel 安装完成后,yum install freetds-devel