簡體   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