安装RMagick

1. 首先需要安装ImageMagick
http://www.imagemagick.org/script/install-source.php#unix

wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar xvfz ImageMagick.tar.gz
cd ImageMagick-6.8.3-1
./configure
make
/usr/local/bin/convert logo: logo.gif

2. 在网上搜索,下载下列rpm包并安装

http://hi.baidu.com/fengyun409/item/2f82be9750dc45bdcd80e5e1
http://www.imagemagick.org/download/delegates/

rpm -Uvh –force ghostscript-8.70-14.el5_8.1.x86_64.rpm
rpm -Uvh –force ghostscript-devel-8.70-14.el5_8.1.x86_64.rpm
rpm -Uvh lcms-devel-1.18-0.1.beta1.el5_3.2.x86_64.rpm
rpm -Uvh ImageMagick-6.2.8.0-15.el5_8.x86_64.rpm
rpm -Uvh ImageMagick-devel-6.2.8.0-15.el5_8.x86_64.rpm

wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/linux/GraphicsMagick-1.3.9-1.src.rpm
wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/GraphicsMagick-LATEST.tar.bz2
bzip2 -d GraphicsMagick-LATEST.tar.bz2 | tar -xvf –
tar xvfz GraphicsMagick-LATEST.tar
gzip -d GraphicsMagick-LATEST.tar | tar -xvf –

wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/ruby/rmagick-1.15.17.gem
rpm -Uvh GraphicsMagick-1.3.9-1.src.rpm
gem install rmagick -v 1.13.0 — –build-flags –with-graphics-magick

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注