Imagick Install Problem On Centos 5

bilogate

New member
Joined
Dec 1, 2011
Messages
3
Hello i am trying to install imagick but pecl give the error.

yum install ImageMagick OK
yum install ImageMagick-devel OK

pecl install imagick
downloading imagick-3.0.1.tgz ...
Starting to download imagick-3.0.1.tgz (93,920 bytes)
.....................done: 93,920 bytes
ERROR: Unknown Role class: "PEAR_Installer_Role_Pear_Installer_role_doc"

i tryted to update pear with this command : pear upgrade pear there was no error. but
pecl install imagick still not working.
Can u help me plss...
 
Okey i solved the problem.
this are what i have made.

yum install ImageMagick
yum install ImageMagick-devel
wget http://pecl.php.net/get/imagick-3.0.0.tgz
tar xvzf imagick-3.0.0.tgz
cd imagick-3.0.0
phpize && ./configure

auto conf gives the error and than i install autoconf with yum
yum install autoconf

after autoconf installation
phpize && ./configure worked

make
make install

and i cheched the imagick.so file with this command
updatedb ( for refresh filelist on linux )
locate imagick.so

this file was in /usr/local/lib/php/extensions/no-debug-non-zts-20060613/imagick.so

so i edit php.ini file from direct admin panel
i replaced
; extension_dir = "./"
extension_dir="/usr/local/lib/php/extensions/no-debug-non-zts-20060613"

and i insert
extension=imagick.so

after that i restart the httpd service with this command
service httpd restart

and it work when i check the php info it was there :)

note: my disto centos 5.7
 
Back
Top