ImageMagick FreeBSD php

Ставим ImageMagick на сервере FreeBSD


в /etc/make.conf добавим
WITHOUT_X11=YES


whereis ImageMagick
cd /usr/ports/graphics/ImageMagick
make install


далее, нужно поставить pecl-imagick

cd /usr/ports/graphics/pecl-imagick/
make install clean



root@s5:/usr/ports/graphics/pecl-imagick # make install clean
===>  Staging for pecl-imagick-3.1.2
===>   pecl-imagick-3.1.2 depends on file: /usr/local/include/php/main/php.h - found
===>   pecl-imagick-3.1.2 depends on shared library: MagickWand - found
===>   Generating temporary packing list
====> Compressing man pages (compress-man)
****************************************************************************

The following line has been added to your /usr/local/etc/php/extensions.ini
configuration file to automatically load the installed extension:

extension=imagick.so

****************************************************************************
===>  Building package for pecl-imagick-3.1.2
Creating package /usr/ports/graphics/pecl-imagick/work/pkg/pecl-imagick-3.1.2.tbz
Registering depends: ImageMagick-nox11-6.8.0.7_5,1 liblqr-1-0.4.1_6 glib-2.36.3_2 python27-2.7.6_4 g
ettext-0.18.3.1 php53-5.3.28_2 webp-0.3.1_4 tiff-4.0.3 libXmu-1.1.2,1 libXt-1.1.4,1 freeglut-2.8.1 l
ibXi-1.7.2,1 libGLU-9.0.0 libGL-7.6.1_4 libXxf86vm-1.1.3 libXrandr-1.4.2 libXext-1.3.2,1 libXdamage-
1.1.4 libXfixes-5.0.1 libXrender-0.9.8 libX11-1.6.2,1 libxcb-1.9.3 libxml2-2.9.1_1 libiconv-1.14_3 l
ibffi-3.0.13_1 libltdl-2.4.2_2 libdrm-2.4.17_1 libpciaccess-0.13.2 libpthread-stubs-0.3_4 pcre-8.34
pkgconf-0.9.5 giflib-nox11-4.2.3_1 jasper-1.900.1_12 jbigkit-1.6 jpeg-8_4 lcms2-2.5 libfpx-1.3.1.4 p
ng-1.5.18 perl5-5.16.3_9 fftw3-3.3.3_1 pciids-20140312 fontconfig-2.11.0_1,1 freetype2-2.5.3 expat-2
.1.0 damageproto-1.2.1 dri2proto-2.8 fixesproto-5.0 inputproto-2.3 kbproto-1.0.6 libSM-1.2.2,1 libIC
E-1.0.8,1 libXau-1.0.8 libXdmcp-1.1.1 randrproto-1.4.0 renderproto-0.11.1 xextproto-7.2.1 xf86vidmod
eproto-2.3.1 xproto-7.0.25.
Creating bzip'd tar ball in '/usr/ports/graphics/pecl-imagick/work/pkg/pecl-imagick-3.1.2.tbz'
===>  Installing for pecl-imagick-3.1.2
===>  Checking if graphics/pecl-imagick already installed
pkg_install EOL is scheduled for 2014-09-01. Please consider migrating to pkgng
http://blogs.freebsdish.org/portmgr/2014/02/03/time-to-bid-farewell-to-the-old-pkg_-tools/
===>  Cleaning for ImageMagick-nox11-6.8.0.7_5,1
===>  Cleaning for pecl-imagick-3.1.2
root@s5:/usr/ports/graphics/pecl-imagick #


ну и проверим
root@s5:/usr/local/etc/php # php -m|grep imagick
imagick
root@s5:/usr/local/etc/php #

0 комментариев

Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.