Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php imagick安装错误pecl安装imagick_Php_Linux_Centos_Imagick - Fatal编程技术网

Php imagick安装错误pecl安装imagick

Php imagick安装错误pecl安装imagick,php,linux,centos,imagick,Php,Linux,Centos,Imagick,我正在安装imagick的最后一步,收到一个错误。我对centos一无所知,所以我要去找专家。这是我得到的错误。关于如何让它工作有什么帮助吗?我的服务器是一个专用的中间示例 [root@furkidgrid ~]# which Wand-config /usr/bin/Wand-config [root@furkidgrid ~]# pecl install imagick downloading imagick-3.1.2.tgz ... Starting to download imagic

我正在安装imagick的最后一步,收到一个错误。我对centos一无所知,所以我要去找专家。这是我得到的错误。关于如何让它工作有什么帮助吗?我的服务器是一个专用的中间示例

[root@furkidgrid ~]# which Wand-config
/usr/bin/Wand-config
[root@furkidgrid ~]# pecl install imagick
downloading imagick-3.1.2.tgz ...
Starting to download imagick-3.1.2.tgz (94,657 bytes)
.....................done: 94,657 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Please provide the prefix of Imagemagick installation [autodetect] : /usr/
building in /var/tmp/pear-build-root/imagick-3.1.2
running: /root/tmp/pear/temp/imagick/configure --with-imagick=/usr/
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
ERROR: `/root/tmp/pear/temp/imagick/configure --with-imagick=/usr/' failed

我建议你联系我。一般来说,
yum-install
是安装系统软件包的方式。感谢您的帮助!