# pecl install gmagick
Failed to download pecl/gmagick within preferred state "stable", latest release is version 1.1.2RC1, stability "beta", use "channel://pecl.php.net/gmagick-1.1.2RC1" to install
Cannot initialize 'channel://pecl.php.net/gmagick', invalid or missing package file
Package "channel://pecl.php.net/gmagick" is not valid
install failed
# pecl install gmagick
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 64 bytes) in /usr/share/pear/PEAR/XMLParser.php on line 142
Allowed memory size of 8388608 bytes exhausted (tried to allocate 72 bytes)
解决方法:
# vim +142 /usr/share/pear/PEAR/XMLParser.php
添加以下一行:
ini_set("memory_limit","100M");