Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I try to install imagick in mint 9 (lxde) and there is error

nerkn@nerkn-laptop ~/siil $ sudo 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"

Can any one help?

$ dpkg -l php5*
ii  php5-cli                                             5.3.2-1ubuntu4.9 
ii  php5-common                                          5.3.2-1ubuntu4.9                                     
ii  php5-curl                                            5.3.2-1ubuntu4.9                                     
un  php5-dev                                             <none>                                               
ii  php5-gd                                              5.3.2-1ubuntu4.9                                     
ii  php5-imagick                                         2.1.1RC1-1build3                                     
un  php5-json                                            <none>                                               
ii  php5-memcache                                        3.0.4-2build1                                        
un  php5-mhash                                           <none>                                               
ii  php5-mysql                                           5.3.2-1ubuntu4.9                                     
un  php5-mysqli                                          <none>                                               
ii  php5-sqlite                                          5.3.2-1ubuntu4.9                                     
un  php5-suhosin                                         <none>                                               
ii  php5-xdebug                                          2.0.5-1ubuntu1

$  mount | grep /dev/sda5
/dev/sda5 on / type ext3 (rw,noatime,errors=remount-ro)
share|improve this question
question is still valid. ı just continue using exec & convert. Not native php libs. – nerkn Jul 4 '11 at 13:44

Try to upgrade your PEAR installation:

$ pear upgrade pear

(The pecl command is part of PEAR)

Chances stand that your current pecl/pear setup is broken and needs to be fixed first.

share|improve this answer

Have you ever tried to add these lines after the first line (which is #!/bin/sh) of "/usr/bin/pear":

# sudo vim /usr/bin/pear

export LC_ALL="C"
export LANG="C"

Or you can do this manually at every bash session before you run pear or pecl.

share|improve this answer
You should NOT be modifying the pear script -- your changes will be stomped on by the next PHP upgrade. If you want to set these environment variables permanently do so in the proper place (your .profile or shell's rc file). – voretaq7 Nov 13 '12 at 23:50
@voretaq7 Yep you're completely right, my bad. It was just a sloppy answer to quick fix, sorry – dursunturan Jan 23 '13 at 23:35
dursunturan right, this problem caused by php Turkish locale. (I=ı and İ=i in turkish). Forcing locales fixes problem. – nerkn Jul 28 '13 at 0:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.