I can not install php-mssql in php 5.4 CentOS 7

0

I've been around for a while now but I hope someone can help me, I try to install php-mssql with yum and I get the following error:

[root@stackoverflow ~]# yum install php-mssql freetds
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.oss.ou.edu
 * epel: mirror.oss.ou.edu
 * extras: mirror.dc2.hackingand.coffee
 * updates: repo1.dal.innoscale.net
Resolving Dependencies
--> Running transaction check
---> Package freetds.x86_64 0:0.91-2.el6 will be installed
--> Processing Dependency: libgnutls.so.26(GNUTLS_1_4)(64bit) for package: freetds-0.91-2.el6.x86_64
--> Processing Dependency: libgnutls.so.26()(64bit) for package: freetds-0.91-2.el6.x86_64
---> Package php-mssql.x86_64 0:5.3.3-5.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mssql-5.3.3-5.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mssql-5.3.3-5.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-mssql-5.3.3-5.el6.x86_64 (epel)
           Requires: php(api) = 20090626
           Installed: php-common-5.4.16-45.el7.x86_64 (@base)
               php(api) = 20100412-64
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)
Error: Package: php-mssql-5.3.3-5.el6.x86_64 (epel)
           Requires: php(zend-abi) = 20090626
           Installed: php-common-5.4.16-45.el7.x86_64 (@base)
               php(zend-abi) = 20100525-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[root@stackoverflow ~]# ls -l /usr/lib64/libgnutls.so.28
lrwxrwxrwx. 1 root root 20 Nov  5 19:24 /usr/lib64/libgnutls.so.28 -> libgnutls.so.28.43.0
[root@stackoverflow ~]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.oss.ou.edu
 * epel: mirror.oss.ou.edu
 * extras: mirror.dc2.hackingand.coffee
 * updates: repo1.dal.innoscale.net
repo id                                                                               repo name                                                                                          status
base/7/x86_64                                                                         CentOS-7 - Base                                                                                     9,911
epel/x86_64                                                                           Extra Packages for Enterprise Linux 7 - x86_64                                                     12,492
extras/7/x86_64                                                                       CentOS-7 - Extras                                                                                     433
mysql-connectors-community/x86_64                                                     MySQL Connectors Community                                                                             74
mysql-tools-community/x86_64                                                          MySQL Tools Community                                                                                  74
mysql80-community/x86_64                                                              MySQL 8.0 Community Server                                                                             49
packages-microsoft-com-prod                                                           packages-microsoft-com-prod                                                                           227
updates/7/x86_64                                                                      CentOS-7 - Updates                                                                                  1,614
repolist: 24,874
[root@stackoverflow ~]# sudo pecl install sqlsrv pdo_sqlsrv
pecl/sqlsrv requires PHP (version >= 7.0.0), installed version is 5.4.16
pecl/pdo_sqlsrv requires PHP (version >= 7.0.0), installed version is 5.4.16
No valid packages found
install failed

I have the library of libgnutls and php-common, what is it that is failing me? I need the library to work on php 4 and when I try to install it with pecl it asks me to force php 7.

    
asked by Tabitha 06.11.2018 в 02:35
source

0 answers