Php

無法在 Centos 伺服器上安裝 Pecl (Imagick) 擴展 - 缺少 autoconf

  • September 29, 2012

我正在嘗試在 centos 伺服器上安裝 pecl 擴展程序 Imagick,但我收到有關 autoconf 的錯誤。Autoconf 已安裝,make 和 gcc 也已安裝。但它抱怨路徑:

[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

如果連結不存在,請創建它。

引用自:https://serverfault.com/questions/433178