我试图在一个centos服务器上安装pecl扩展Imagick,但是我得到一个有关autoconf的错误。 像make和gcc一样安装Autoconf。 但是它抱怨道:
[root@server ~]# pecl install imagick downloading imagick-3.0.1.tgz ... Starting to download imagick-3.0.1.tgz (93,920 bytes) .....................done: 93,920 bytes 13 source files, building running: phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 /usr/bin/phpize: /var/tmp/imagick/build/shtool: /bin/sh: bad interpreter: Permission denied Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. ERROR: `phpize' failed
我该怎么办?
这似乎是一个问题/ bin / sh命令,在centos上是/ bin / bash的链接。 检查命令是否可执行。
ls -l / bin / sh ls -l / bin / bash
如果链接不存在,请创build它。