1. 安装 ImageMagick总是提示没有按装freetype:
...
FreeType --with-freetype=yes no
...
下载了几个版本的freeType以源码的方式安装(configure/ make && make install),总也不行。
2. 最后在p偶然看到,freetype 也可以用 yum 的方式安装 http://www.freedesktop.org/wiki/Software/HarfBuzz/
yum install gcc gcc-c++ freetype-devel glib2-devel cairo-devel
3. 随后再安装 imageMagic 则成功
======================================安装日志 freetype
#yum install gcc gcc-c++ freetype-devel glib2-devel cairo-devel
Loaded plugins: fastestmirror
Determining fastest mirrors
10gen | 2.5 kB 00:00
base | 3.7 kB 00:00
centosplus | 3.4 kB 00:00
contrib | 2.9 kB 00:00
epel | 4.4 kB 00:00
epel/primary_db | 6.3 MB 00:00
extras | 3.3 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 5.4 MB 00:00
Setting up Install Process
Package gcc-4.4.7-4.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package cairo-devel.x86_64 0:1.8.8-3.1.el6 will be installed
--> Processing Dependency: cairo = 1.8.8-3.1.el6 for package: cairo-devel-1.8.8- 3.1.el6.x86_64
--> Processing Dependency: pkgconfig(xrender) >= 0.6 for package: cairo-devel-1. 8.8-3.1.el6.x86_64
--> Processing Dependency: pkgconfig(pixman-1) >= 0.12.0 for package: cairo-deve l-1.8.8-3.1.el6.x86_64
--> Processing Dependency: pixman-devel >= 0.12.0 for package: cairo-devel-1.8.8 -3.1.el6.x86_64
--> Processing Dependency: fontconfig-devel >= 2.0 for package: cairo-devel-1.8. 8-3.1.el6.x86_64
--> Processing Dependency: pkgconfig(x11) for package: cairo-devel-1.8.8-3.1.el6 .x86_64
--> Processing Dependency: pkgconfig(libpng12) for package: cairo-devel-1.8.8-3. 1.el6.x86_64
--> Processing Dependency: pkgconfig(fontconfig) for package: cairo-devel-1.8.8- 3.1.el6.x86_64
--> Processing Dependency: libpng-devel for package: cairo-devel-1.8.8-3.1.el6.x 86_64
--> Processing Dependency: libXrender-devel for package: cairo-devel-1.8.8-3.1.e l6.x86_64
--> Processing Dependency: libcairo.so.2()(64bit) for package: cairo-devel-1.8.8 -3.1.el6.x86_64
---> Package freetype-devel.x86_64 0:2.3.11-14.el6_3.1 will be installed
--> Processing Dependency: freetype = 2.3.11-14.el6_3.1 for package: freetype-de vel-2.3.11-14.el6_3.1.x86_64
--> Processing Dependency: zlib-devel for package: freetype-devel-2.3.11-14.el6_ 3.1.x86_64
--> Processing Dependency: libfreetype.so.6()(64bit) for package: freetype-devel -2.3.11-14.el6_3.1.x86_64
---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
---> Package glib2-devel.x86_64 0:2.26.1-7.el6_5 will be installed
--> Processing Dependency: glib2 = 2.26.1-7.el6_5 for package: glib2-devel-2.26.1-7.el6_5.x86_64
--> Running transaction check
---> Package cairo.x86_64 0:1.8.8-3.1.el6 will be installed
--> Processing Dependency: libpng12.so.0(PNG12_0)(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libpng12.so.0()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libpixman-1.so.0()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libfontconfig.so.1()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libXrender.so.1()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: cairo-1.8.8-3.1.el6.x86_64
---> Package fontconfig-devel.x86_64 0:2.8.0-3.el6 will be installed
---> Package freetype.x86_64 0:2.3.11-14.el6_3.1 will be installed
---> Package glib2.x86_64 0:2.26.1-3.el6 will be updated
---> Package glib2.x86_64 0:2.26.1-7.el6_5 will be an update
---> Package libX11-devel.x86_64 0:1.5.0-4.el6 will be installed
--> Processing Dependency: pkgconfig(xcb) >= 1.1.92 for package: libX11-devel-1.5.0-4.el6.x86_64
--> Processing Dependency: pkgconfig(xproto) for package: libX11-devel-1.5.0-4.el6.x86_64
--> Processing Dependency: pkgconfig(xcb) for package: libX11-devel-1.5.0-4.el6.x86_64
--> Processing Dependency: pkgconfig(kbproto) for package: libX11-devel-1.5.0-4.el6.x86_64
---> Package libXrender-devel.x86_64 0:0.9.7-2.el6 will be installed
---> Package libpng-devel.x86_64 2:1.2.49-1.el6_2 will be installed
---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be installed
---> Package pixman-devel.x86_64 0:0.26.2-5.1.el6_5 will be installed
---> Package zlib-devel.x86_64 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package fontconfig.x86_64 0:2.8.0-3.el6 will be installed
---> Package libX11.x86_64 0:1.5.0-4.el6 will be installed
--> Processing Dependency: libX11-common = 1.5.0-4.el6 for package: libX11-1.5.0-4.el6.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.5.0-4.el6.x86_64
---> Package libXrender.x86_64 0:0.9.7-2.el6 will be installed
---> Package libpng.x86_64 2:1.2.49-1.el6_2 will be installed
---> Package libxcb-devel.x86_64 0:1.8.1-1.el6 will be installed
--> Processing Dependency: pkgconfig(xau) >= 0.99.2 for package: libxcb-devel-1.8.1-1.el6.x86_64
---> Package pixman.x86_64 0:0.26.2-5.1.el6_5 will be installed
---> Package xorg-x11-proto-devel.noarch 0:7.6-25.el6 will be installed
--> Running transaction check
---> Package libX11-common.noarch 0:1.5.0-4.el6 will be installed
---> Package libXau-devel.x86_64 0:1.0.6-4.el6 will be installed
--> Processing Dependency: libXau = 1.0.6-4.el6 for package: libXau-devel-1.0.6-4.el6.x86_64
--> Processing Dependency: libXau.so.6()(64bit) for package: libXau-devel-1.0.6-4.el6.x86_64
---> Package libxcb.x86_64 0:1.8.1-1.el6 will be installed
--> Running transaction check
---> Package libXau.x86_64 0:1.0.6-4.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================
Package Arch Version Repository Size
======================================================================================================================
Installing:
cairo-devel x86_64 1.8.8-3.1.el6 base 314 k
freetype-devel x86_64 2.3.11-14.el6_3.1 base 364 k
gcc-c++ x86_64 4.4.7-4.el6 base 4.7 M
glib2-devel x86_64 2.26.1-7.el6_5 updates 287 k
Installing for dependencies:
cairo x86_64 1.8.8-3.1.el6 base 309 k
fontconfig x86_64 2.8.0-3.el6 base 186 k
fontconfig-devel x86_64 2.8.0-3.el6 base 209 k
freetype x86_64 2.3.11-14.el6_3.1 base 359 k
libX11 x86_64 1.5.0-4.el6 base 584 k
libX11-common noarch 1.5.0-4.el6 base 192 k
libX11-devel x86_64 1.5.0-4.el6 base 1.0 M
libXau x86_64 1.0.6-4.el6 base 24 k
libXau-devel x86_64 1.0.6-4.el6 base 14 k
libXrender x86_64 0.9.7-2.el6 base 30 k
libXrender-devel x86_64 0.9.7-2.el6 base 16 k
libpng x86_64 2:1.2.49-1.el6_2 base 182 k
libpng-devel x86_64 2:1.2.49-1.el6_2 base 112 k
libstdc++-devel x86_64 4.4.7-4.el6 base 1.6 M
libxcb x86_64 1.8.1-1.el6 base 110 k
libxcb-devel x86_64 1.8.1-1.el6 base 174 k
pixman x86_64 0.26.2-5.1.el6_5 updates 200 k
pixman-devel x86_64 0.26.2-5.1.el6_5 updates 18 k
xorg-x11-proto-devel noarch 7.6-25.el6 base 274 k
zlib-devel x86_64 1.2.3-29.el6 base 44 k
Updating for dependencies:
glib2 x86_64 2.26.1-7.el6_5 updates 1.6 M
Transaction Summary
======================================================================================================================
Install 24 Package(s)
Upgrade 1 Package(s)
Total download size: 13 M
Is this ok [y/N]: y
Downloading Packages:
(1/25): cairo-1.8.8-3.1.el6.x86_64.rpm | 309 kB 00:00
(2/25): cairo-devel-1.8.8-3.1.el6.x86_64.rpm | 314 kB 00:00
(3/25): fontconfig-2.8.0-3.el6.x86_64.rpm | 186 kB 00:00
(4/25): fontconfig-devel-2.8.0-3.el6.x86_64.rpm | 209 kB 00:00
(5/25): freetype-2.3.11-14.el6_3.1.x86_64.rpm | 359 kB 00:00
(6/25): freetype-devel-2.3.11-14.el6_3.1.x86_64.rpm | 364 kB 00:00
(7/25): gcc-c++-4.4.7-4.el6.x86_64.rpm | 4.7 MB 00:00
(8/25): glib2-2.26.1-7.el6_5.x86_64.rpm | 1.6 MB 00:00
(9/25): glib2-devel-2.26.1-7.el6_5.x86_64.rpm | 287 kB 00:00
(10/25): libX11-1.5.0-4.el6.x86_64.rpm | 584 kB 00:00
(11/25): libX11-common-1.5.0-4.el6.noarch.rpm | 192 kB 00:00
(12/25): libX11-devel-1.5.0-4.el6.x86_64.rpm | 1.0 MB 00:00
(13/25): libXau-1.0.6-4.el6.x86_64.rpm | 24 kB 00:00
(14/25): libXau-devel-1.0.6-4.el6.x86_64.rpm | 14 kB 00:00
(15/25): libXrender-0.9.7-2.el6.x86_64.rpm | 30 kB 00:00
(16/25): libXrender-devel-0.9.7-2.el6.x86_64.rpm | 16 kB 00:00
(17/25): libpng-1.2.49-1.el6_2.x86_64.rpm | 182 kB 00:00
(18/25): libpng-devel-1.2.49-1.el6_2.x86_64.rpm | 112 kB 00:00
(19/25): libstdc++-devel-4.4.7-4.el6.x86_64.rpm | 1.6 MB 00:00
(20/25): libxcb-1.8.1-1.el6.x86_64.rpm | 110 kB 00:00
(21/25): libxcb-devel-1.8.1-1.el6.x86_64.rpm | 174 kB 00:00
(22/25): pixman-0.26.2-5.1.el6_5.x86_64.rpm | 200 kB 00:00
(23/25): pixman-devel-0.26.2-5.1.el6_5.x86_64.rpm | 18 kB 00:00
(24/25): xorg-x11-proto-devel-7.6-25.el6.noarch.rpm | 274 kB 00:00
(25/25): zlib-devel-1.2.3-29.el6.x86_64.rpm | 44 kB 00:00
----------------------------------------------------------------------------------------------------------------------
Total 9.9 MB/s | 13 MB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xorg-x11-proto-devel-7.6-25.el6.noarch 1/26
Installing : freetype-2.3.11-14.el6_3.1.x86_64 2/26
Installing : fontconfig-2.8.0-3.el6.x86_64 3/26
Installing : libXau-1.0.6-4.el6.x86_64 4/26
Installing : libxcb-1.8.1-1.el6.x86_64 5/26
Installing : 2:libpng-1.2.49-1.el6_2.x86_64 6/26
Installing : pixman-0.26.2-5.1.el6_5.x86_64 7/26
Installing : zlib-devel-1.2.3-29.el6.x86_64 8/26
Installing : freetype-devel-2.3.11-14.el6_3.1.x86_64 9/26
Installing : fontconfig-devel-2.8.0-3.el6.x86_64 10/26
Installing : 2:libpng-devel-1.2.49-1.el6_2.x86_64 11/26
Installing : pixman-devel-0.26.2-5.1.el6_5.x86_64 12/26
Installing : libXau-devel-1.0.6-4.el6.x86_64 13/26
Installing : libxcb-devel-1.8.1-1.el6.x86_64 14/26
Installing : libX11-common-1.5.0-4.el6.noarch 15/26
Installing : libX11-1.5.0-4.el6.x86_64 16/26
Installing : libXrender-0.9.7-2.el6.x86_64 17/26
Installing : libX11-devel-1.5.0-4.el6.x86_64 18/26
Installing : libXrender-devel-0.9.7-2.el6.x86_64 19/26
Installing : cairo-1.8.8-3.1.el6.x86_64 20/26
Updating : glib2-2.26.1-7.el6_5.x86_64 21/26
Installing : libstdc++-devel-4.4.7-4.el6.x86_64 22/26
Installing : gcc-c++-4.4.7-4.el6.x86_64 23/26
Installing : glib2-devel-2.26.1-7.el6_5.x86_64 24/26
Installing : cairo-devel-1.8.8-3.1.el6.x86_64 25/26
Cleanup : glib2-2.26.1-3.el6.x86_64 26/26
Verifying : libXau-devel-1.0.6-4.el6.x86_64 1/26
Verifying : cairo-devel-1.8.8-3.1.el6.x86_64 2/26
Verifying : libxcb-devel-1.8.1-1.el6.x86_64 3/26
Verifying : fontconfig-2.8.0-3.el6.x86_64 4/26
Verifying : libstdc++-devel-4.4.7-4.el6.x86_64 5/26
Verifying : glib2-devel-2.26.1-7.el6_5.x86_64 6/26
Verifying : cairo-1.8.8-3.1.el6.x86_64 7/26
Verifying : freetype-2.3.11-14.el6_3.1.x86_64 8/26
Verifying : zlib-devel-1.2.3-29.el6.x86_64 9/26
Verifying : glib2-2.26.1-7.el6_5.x86_64 10/26
Verifying : gcc-c++-4.4.7-4.el6.x86_64 11/26
Verifying : pixman-0.26.2-5.1.el6_5.x86_64 12/26
Verifying : libXrender-0.9.7-2.el6.x86_64 13/26
Verifying : fontconfig-devel-2.8.0-3.el6.x86_64 14/26
Verifying : libX11-common-1.5.0-4.el6.noarch 15/26
Verifying : 2:libpng-devel-1.2.49-1.el6_2.x86_64 16/26
Verifying : libxcb-1.8.1-1.el6.x86_64 17/26
Verifying : xorg-x11-proto-devel-7.6-25.el6.noarch 18/26
Verifying : 2:libpng-1.2.49-1.el6_2.x86_64 19/26
Verifying : freetype-devel-2.3.11-14.el6_3.1.x86_64 20/26
Verifying : pixman-devel-0.26.2-5.1.el6_5.x86_64 21/26
Verifying : libXau-1.0.6-4.el6.x86_64 22/26
Verifying : libX11-1.5.0-4.el6.x86_64 23/26
Verifying : libX11-devel-1.5.0-4.el6.x86_64 24/26
Verifying : libXrender-devel-0.9.7-2.el6.x86_64 25/26
Verifying : glib2-2.26.1-3.el6.x86_64 26/26
Installed:
cairo-devel.x86_64 0:1.8.8-3.1.el6 freetype-devel.x86_64 0:2.3.11-14.el6_3.1 gcc-c++.x86_64 0:4.4.7-4.el6
glib2-devel.x86_64 0:2.26.1-7.el6_5
Dependency Installed:
cairo.x86_64 0:1.8.8-3.1.el6 fontconfig.x86_64 0:2.8.0-3.el6
fontconfig-devel.x86_64 0:2.8.0-3.el6 freetype.x86_64 0:2.3.11-14.el6_3.1
libX11.x86_64 0:1.5.0-4.el6 libX11-common.noarch 0:1.5.0-4.el6
libX11-devel.x86_64 0:1.5.0-4.el6 libXau.x86_64 0:1.0.6-4.el6
libXau-devel.x86_64 0:1.0.6-4.el6 libXrender.x86_64 0:0.9.7-2.el6
libXrender-devel.x86_64 0:0.9.7-2.el6 libpng.x86_64 2:1.2.49-1.el6_2
libpng-devel.x86_64 2:1.2.49-1.el6_2 libstdc++-devel.x86_64 0:4.4.7-4.el6
libxcb.x86_64 0:1.8.1-1.el6 libxcb-devel.x86_64 0:1.8.1-1.el6
pixman.x86_64 0:0.26.2-5.1.el6_5 pixman-devel.x86_64 0:0.26.2-5.1.el6_5
xorg-x11-proto-devel.noarch 0:7.6-25.el6 zlib-devel.x86_64 0:1.2.3-29.el6
Dependency Updated:
glib2.x86_64 0:2.26.1-7.el6_5
Complete!
=============================== configure ImageMagick log
Option Value
-------------------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=yes yes
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=no no
Install documentation: yes
Delegate Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
Dejavu fonts --with-dejavu-font-dir=default none
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes yes
FreeType --with-freetype=yes yes
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=
LCMS v1 --with-lcms=yes no
LCMS v2 --with-lcms2=yes no
LQR --with-lqr=yes no
LTDL --with-ltdl=yes no
LZMA --with-lzma=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
OpenJP2 --with-openjp2=yes no
PANGO --with-pango=yes no
PERL --with-perl=no no
PNG --with-png=yes yes
RSVG --with-rsvg=no no
TIFF --with-tiff=yes no
WEBP --with-webp=yes no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=no no
X11 --with-x= yes
XML --with-xml=yes no
ZLIB --with-zlib=yes yes
X11 Configuration:
X_CFLAGS =
X_PRE_LIBS =
X_LIBS =
X_EXTRA_LIBS =
Options used to compile and link:
PREFIX = /usr/local/ImageMagick
EXEC-PREFIX = /usr/local/ImageMagick
VERSION = 6.8.9
CC = gcc -std=gnu99 -std=gnu99
CFLAGS = -I/usr/include/freetype2 -fopenmp -g -O2 -Wall -fexceptions -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
CPPFLAGS = -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS =
LIBS =
CXX = g++
CXXFLAGS = -g -O2 -pthread
FEATURES = DPC OpenMP
DELEGATES = bzlib mpeg fontconfig freetype jng jpeg png x zlib