web-dev-qa-db-ja.com

Ubuntuでのimagick PHP拡張機能のインストール

Ubuntuサーバーにimagick pecl拡張機能をインストールしようとすると、以下のエラーが発生します。 ImageMagick rpmをaptitudeを使用してすでにインストールしており、pecl拡張はバージョン2.3.0です。オンラインで見回しましたが、正しい方向を向いているものが見つかりません。また、エラーが言及しているWand-configまたはMagickWand-configプログラムのように見えるものも探しましたが、何も見つかりません。

steven@server:/var/www$ Sudo pecl install imagick
downloading imagick-2.3.0.tgz ...
Starting to download imagick-2.3.0.tgz (86,976 bytes)
.....................done: 86,976 bytes
12 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Please provide the prefix of Imagemagick installation [autodetect] :
building in /var/tmp/pear-build-root/imagick-2.3.0
running: /tmp/pear/temp/imagick/configure --with-imagick
*** ... snip ... ***
checking ImageMagick MagickWand API configuration program... configure: error: not found. Please provide a path to MagickWand-config or Wand-config program.
ERROR: `/tmp/pear/temp/imagick/configure --with-imagick' failed

実際には役に立たないようだったので、ほとんどの出力を省略しましたが、要求があれば投稿できます。

  • PHPは5.2.4です
  • ImageMagickは6.3.7です
  • ランSudo aptitude upgrade今日、ImageMagickをインストールする前にRPMをアップグレードします
22
Steven Surowiec

ImageMagick develパッケージをインストールする必要があります。 Ubuntuで試してください:

Sudo apt-get install libmagickwand-dev libmagickcore-dev
38
hdanniel

これはubuntuリポジトリ(hardyのバージョン2.0.1-1)にありますが、自分でコンパイルしようとしている理由はありますか?

0
theotherreceive