繁体   English   中英

无法在centos 6.8上安装php55 imagick,但缺少php-devel

[英]cant install php55 imagick on centos 6.8 php-devel installed but missing

我对建立我的整个运行系统是正确的,只是为了将imagick添加到php中,所以这就是我所在的位置。 我想使用yum进行安装,我已启用remi55并加载了所有必需的文件

PHP版本

$php -v
PHP 5.5.34 (cli) (built: Mar 29 2016 19:27:57) 
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

安装了gcc

Package gcc-4.4.7-18.el6.x86_64 already installed and latest version

已安装imagemagick和imagemagick-devel

Package ImageMagick-6.7.2.7-6.el6.x86_64 already installed and latest version
Package ImageMagick-devel-6.7.2.7-6.el6.x86_64 already installed and latest version

php-devel似乎已安装

Package php55-php-devel-5.5.38-7.el6.remi.x86_64 already installed and latest version

我安装了更多东西

Package php55-php-pecl-imagick-3.4.3-1.el6.remi.x86_64 already installed
php55-php-pecl-xdebug.x86_64 0:2.5.3-2.el6.remi already installed

我不知道尝试了很多,但是当涉及到

pecl install imagick

我得到一个错误

Starting to download imagick-3.4.3.tgz (245,410 bytes)
............................done: 245,410 bytes
19 source files, building
running: phpize
Can't find PHP headers in /usr/include/php
The php-devel package is required for use of this command.
ERROR: `phpize' failed

好吧,即使我知道我的PHP版本已经yum install php-devel ,我还是尝试yum install php-devel并且出现以下错误:

--> Finished Dependency Resolution
Error: Package: php-pecl-jsonc-1.3.10-2.el6.remi.5.5.x86_64 (remi-php55)
           Requires: php(zend-abi) = 20121212-64
           Removing: php-common-5.5.34-1.el6.remi.x86_64 (@remi-php55)
               php(zend-abi) = 20121212-64
           Updated By: php-common-5.6.30-2.el6.remi.x86_64 (remi-test)
               php(zend-abi) = 20131226-64
           Available: php-common-5.3.3-49.el6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-5.5.38-6.el6.remi.x86_64 (remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.5.38-7.el6.remi.x86_64 (remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.6.30-0.1.RC1.el6.remi.x86_64 (remi-test)
               php(zend-abi) = 20131226-64
Error: Package: php-pecl-jsonc-1.3.10-2.el6.remi.5.5.x86_64 (remi-php55)
           Requires: php(api) = 20121113-64
           Removing: php-common-5.5.34-1.el6.remi.x86_64 (@remi-php55)
               php(api) = 20121113-64
           Updated By: php-common-5.6.30-2.el6.remi.x86_64 (remi-test)
               php(api) = 20131106-64
           Available: php-common-5.3.3-49.el6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.5.38-6.el6.remi.x86_64 (remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.5.38-7.el6.remi.x86_64 (remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.6.30-0.1.RC1.el6.remi.x86_64 (remi-test)
               php(api) = 20131106-64
Error: Package: php-pecl-zip-1.14.0-1.el6.remi.5.5.x86_64 (remi-php55)
           Requires: php(zend-abi) = 20121212-64
           Removing: php-common-5.5.34-1.el6.remi.x86_64 (@remi-php55)
               php(zend-abi) = 20121212-64
           Updated By: php-common-5.6.30-2.el6.remi.x86_64 (remi-test)
               php(zend-abi) = 20131226-64
           Available: php-common-5.3.3-49.el6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php(zend-abi) = 20100525-x86-64
           Available: php-common-5.5.38-6.el6.remi.x86_64 (remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.5.38-7.el6.remi.x86_64 (remi-php55)
               php(zend-abi) = 20121212-64
           Available: php-common-5.6.30-0.1.RC1.el6.remi.x86_64 (remi-test)
               php(zend-abi) = 20131226-64
Error: Package: php-pecl-zip-1.14.0-1.el6.remi.5.5.x86_64 (remi-php55)
           Requires: php(api) = 20121113-64
           Removing: php-common-5.5.34-1.el6.remi.x86_64 (@remi-php55)
               php(api) = 20121113-64
           Updated By: php-common-5.6.30-2.el6.remi.x86_64 (remi-test)
               php(api) = 20131106-64
           Available: php-common-5.3.3-49.el6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.4.45-13.el6.remi.x86_64 (remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.5.38-6.el6.remi.x86_64 (remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.5.38-7.el6.remi.x86_64 (remi-php55)
               php(api) = 20121113-64
           Available: php-common-5.6.30-0.1.RC1.el6.remi.x86_64 (remi-test)
               php(api) = 20131106-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

所以我真的疯了,我现在不知道该怎么办? 我最不想要的是“全部删除并从头开始安装”,因为我说我有一个涉及很多站点的工作系统,因此,如果您有任何想法让我知道,请确保我尝试重新启动httpd

我知道我可能没有提供所有必需的信息,但我不想tldr;

毕竟php -m | grep image php -m | grep image

什么都不返回

这是php -m的完整输出

[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_sqlite
Phar
posix
readline
recode
Reflection
session
shmop
SimpleXML
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

只需禁用remi-test(具有5.6个软件包,因此会产生冲突)。

yum-config-manager --disable remi-test
yum install php-pecl-imagick

BTW 5.5现在已停产 ,因此我强烈建议您更新到维护版本

php55-php-pecl-imagick是同时安装多个版本的SCL软件包,您可能不需要此软件包。

请参阅向导说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM