yum安装php-mssql事务错误

时间:2015-11-04 08:47:24

标签: centos6

我用remi repo安装了新的php版本5.6.15。现在我需要安装php-mssql,但它与旧文件冲突..这是我终端的屏幕。 - 我可以删除php5.6.15.remo和所有其他冲突文件,或者我可以通过其他方式删除它吗?

root@user-gwfilter:~/Desktop # yum install php-mssql
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: repo.boun.edu.tr
 * extras: repo.boun.edu.tr
 * remi-safe: remi.xpg.com.br
 * updates: mirror.alastyr.com
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php56w-mssql.x86_64 0:5.6.14-2.w6 will be installed
--> Processing Dependency: php56w-pdo(x86-64) = 5.6.14-2.w6 for package: php56w-mssql-5.6.14-2.w6.x86_64
--> Running transaction check
---> Package php56w-pdo.x86_64 0:5.6.14-2.w6 will be installed
--> Processing Dependency: php56w-common(x86-64) = 5.6.14-2.w6 for package: php56w-pdo-5.6.14-2.w6.x86_64
--> Running transaction check
---> Package php56w-common.x86_64 0:5.6.14-2.w6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                      Arch                                                  Version                                                    Repository                                               Size
=============================================================================================================================================================================================================================================
Installing:
 php56w-mssql                                                 x86_64                                                5.6.14-2.w6                                                webtatic                                                 39 k
Installing for dependencies:
 php56w-common                                                x86_64                                                5.6.14-2.w6                                                webtatic                                                1.2 M
 php56w-pdo                                                   x86_64                                                5.6.14-2.w6                                                webtatic                                                 93 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install       3 Package(s)

Total size: 1.4 M
Installed size: 8.8 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test


Transaction Check Error:
  file /usr/lib64/php-zts/modules/json.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-pecl-jsonc-1.3.8-1.el6.remi.5.6.x86_64
  file /usr/lib64/php/modules/json.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-pecl-jsonc-1.3.8-1.el6.remi.5.6.x86_64
  file /usr/lib64/php-zts/modules/zip.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-pecl-zip-1.12.5-1.el6.remi.5.6.x86_64
  file /usr/lib64/php/modules/zip.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-pecl-zip-1.12.5-1.el6.remi.5.6.x86_64
  file /etc/php.ini from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/bz2.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/bz2.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/calendar.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/calendar.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/ctype.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/ctype.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/curl.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/curl.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/exif.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/exif.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/fileinfo.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/fileinfo.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/ftp.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/ftp.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/gettext.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/gettext.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/iconv.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/iconv.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/phar.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/phar.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php-zts/modules/sockets.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64
  file /usr/lib64/php/modules/sockets.so from install of php56w-common-5.6.14-2.w6.x86_64 conflicts with file from package php-common-5.6.15-1.el6.remi.x86_64

1 个答案:

答案 0 :(得分:1)

您安装了webtatic + remi存储库:错误的想法以及这些冲突的原因。

注意:似乎没有安装EPEL,你需要它。

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
rpm -Uvh epel-release-latest-6.noarch.rpm

然后,为您的PHP堆栈选择一个提供程序。

yum-config-manager --enable remi-php56
yum-config-manager --disable webtatic
yum install php-mssql

这将永久启用“remi-php56”存储库,该存储库仅提供PHP 5.6及其扩展(将从remi-safe,epel,base和updates存储库中提取依赖关系)。