最近在安裝 imagick 時...同時有3台在裝...一樣的環境確有一台出現底下這個錯誤訊息...
Warning: Illegal string offset '_content' in PEAR/REST/10.php on line 352
PHP Warning: Illegal string offset '_content' in /usr/share/pear/PEAR/REST/10.php on line 352
Warning: Illegal string offset 'st' in PEAR/REST/10.php on line 353
PHP Warning: Illegal string offset 'st' in /usr/share/pear/PEAR/REST/10.php on line 353
Warning: Illegal string offset 'g' in PEAR/REST/10.php on line 359
PHP Warning: Illegal string offset 'g' in /usr/share/pear/PEAR/REST/10.php on line 359
PHP Fatal error: Call to a member function getArchiveFile() on a non-object in /usr/share/pear/PEAR/Downloader.php on line 470
讓我覺的非常奇怪...試了很多方法... gcc php-pear php-devel ImageMagick ImageMagick-devel 等也都移除重裝了...也都不行...
後來用 pecl install apc 是可以用的...這樣代表 pecl 安裝沒問題...
後來試了這個才可以..
# pecl install imagick-3.1.1
原來是目前最新的版本 imagick-3.1.2 不能裝...也不知道為何...查了一下
# pecl info imagick
Release Date 2013-09-22 12:01:16
Release Version 3.1.1 (stable)
API Version 3.1.1 (stable)
最新的版本是:
Release Date 2013-09-25 05:42:37
Release Version 3.1.2 (stable)
API Version 3.1.2 (stable)
都算是穩定版本...應該沒什麼太大差別...就先這樣暫用囉~~