우분투 php5-imagick 설치

우분투 php5-imagick 설치
PHP Fatal error: Class 'Imagick' not found

1 확인[ | ]

root@zetawiki:~# pecl list | grep imagick
root@zetawiki:~# php -m | grep imagick
root@zetawiki:~# php -r 'new Imagick();'
PHP Fatal error:  Class 'Imagick' not found in Command line code on line 1
root@zetawiki:~# dpkg -l | grep php5-imagick
root@zetawiki:~# aptitude show php5-imagick | grep State
State: not installed

2 설치[ | ]

root@zetawiki:~# apt-get install php5-imagick
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ttf-dejavu-core
The following NEW packages will be installed:
  php5-imagick ttf-dejavu-core
0 upgraded, 2 newly installed, 0 to remove and 152 not upgraded.
Need to get 98.0 kB of archives.
After this operation, 627 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/universe php5-imagick amd64 3.1.2-1build1 [95.1 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/main ttf-dejavu-core all 2.34-1ubuntu1 [2,956 B]
... (생략)
Setting up php5-imagick (3.1.2-1build1) ...
php5_invoke: Enable module imagick for apache2 SAPI
php5_invoke: Enable module imagick for cli SAPI
Setting up ttf-dejavu-core (2.34-1ubuntu1) ...

3 확인 2[ | ]

root@zetawiki:~# php -r 'new Imagick();'
root@zetawiki:~# php -m | grep imagick
imagick
root@zetawiki:~# pecl list | grep imagick
imagick 3.1.2   stable
root@zetawiki:~# dpkg -l | grep imagick
ii  php5-imagick                          3.1.2-1build1                           amd64        ImageMagick module for php5
root@zetawiki:~# aptitude show php5-imagick | grep State
State: installed

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}