当前位置: 首页 > OpenSource > 正文

CentOS6.4下GraphicsMagick安装

wget http://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/1.3.18/GraphicsMagick-1.3.18.tar.bz2/download

tar jxvf GraphicsMagick-1.3.18.tar.bz2
cd GraphicsMagick-1.3.18

#install required
yum install -y libpng-devel libpng libjpeg libjpeg-devel libpng libpng-devel libtiff-devel libtiff \
libwmf-devel libwmf libxml2-devel libxml2 zlib-devel zlib gd-devel gd bzip2 bzip2-devel libzip-devel libzip

./configure –prefix=/usr/local/GraphicsMagick-1.3.18 –disable-static –enable-openmp \
–enable-shared –enable-symbol-prefix

make
make install

Edit: /etc/profile
GM_HOME=/usr/local/GraphicsMagick
PATH=$GM_HOME/bin:$PATH
export PATH CLASSPATH GM_HOME


gm version
GraphicsMagick 1.3.18 2013-03-10 Q8 http://www.GraphicsMagick.org/
Copyright (C) 2002-2013 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See http://www.GraphicsMagick.org/www/Copyright.html for details.

Feature Support:
Thread Safe yes
Large Files (> 32 bit) yes
Large Memory (> 32 bit) yes
BZIP yes
DPS no
FlashPix no
FreeType yes
Ghostscript (Library) no
JBIG no
JPEG-2000 no
JPEG yes
Little CMS no
Loadable Modules no
OpenMP yes (200805)
PNG yes
TIFF yes
TRIO no
UMEM no
WMF yes
X11 yes
XML yes
ZLIB yes

Host type: x86_64-unknown-linux-gnu

Configured using the command:
./configure ‘–prefix=/usr/local/GraphicsMagick-1.3.18’ ‘–disable-static’ ‘–enable-openmp’ ‘–enable-shared’ ‘–enable-symbol-prefix’

Final Build Parameters:
CC = gcc -std=gnu99
CFLAGS = -fopenmp -g -O2 -Wall -pthread
CPPFLAGS = -I/usr/include/freetype2 -I/usr/include/libxml2
CXX = g++
CXXFLAGS = -pthread
LDFLAGS = -L/usr/lib -L/usr/lib
LIBS = -ltiff -lfreetype -ljpeg -lpng12 -lwmflite -lXext -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread

本文固定链接: https://www.2hei.net/2013/10/29/centos6-4-graphicsmagick-install/ | 2hei.net

该日志由 u2 于2013年10月29日发表在 OpenSource 分类下,
原创文章转载请注明: CentOS6.4下GraphicsMagick安装 | 2hei.net
关键字:

报歉!评论已关闭.