www.question-defense.com | Engage: Visit :: Login :: Register
Translate to English Übersetzen Sie zum Deutsch/German Переведите к русскому/Russian Μεταφράστε στα ελληνικά/Greek Vertaal aan het Nederlands/Dutch ترجمة الى العربية/Arabic 中文翻译/Chinese Traditional 中文翻译/Chinese Simplified 한국어에게 번역하십시오/Korean 日本語に翻訳しなさい /Japanese Traduza ao Português/Portuguese Traduca ad Italiano/Italian Traduisez au Français/French Traduzca al Español/Spanish
0

This is what I had to do to get it to work on CentOS 5. For some reason, FreeType would not work with yum so I built it from scratch. I’m not sure if the all the “yum install”s were needed, but I did it anyway.

#yum install freetype — did not work

cd /usr/local/src

wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz

tar xvzf freetype-2.3.5.tar.gz

./configure

make

make install

 

 

yum install glib
yum install glib2
yum install libpng
yum install libjpeg
yum install libtiff
yum install ghostscript
yum install freetype

 

cd /usr/local/src

wget http://image_magick.veidrodis.com/image_magick/ImageMagick.tar.gz

tar xvzf ImageMagick.tar.gz

cd ImageMagick-X.Y.Z

./configure –disable-static –with-modules –without-perl –without-magick-plus-plus –with-quantum-depth=8 CFLAGS=-fPIC

make

make install

 

wget http://files.rubyforge.mmmultiworks.com/rmagick/RMagick-1.15.11.tar.gz

tar zxvf RMagick-1.15.11.tar.gz

cd RMagick-1.15.4

./configure

export LD_LIBRARY_PATH=/usr/local/lib

echo $LD_LIBRARY_PATH

make

make install

 

 

#test Rmagick in Rails

root# ruby script/console

irb(main):001:0> require ‘RMagick’

irb(main):002:0> include Magick

=> Object

irb(main):003:0> img = ImageList.new “test.jpg”

=> [test.jpg JPEG 10x11 DirectClass 8-bit 391b]

irb(main):004:0> img.write “test.png”

=> [test.jpg=>test.png JPEG 10x11 DirectClass 8-bit]

irb(main):005:0>

 

DeliciousStumbleUponDiggTwitterMixxTechnoratiFacebookNews VineLinkedInYahoo! Bookmarks
Related posts:
  1. How to Batch Resize Image from Linux Shell with ImageMagick ImageMagick is a really cool product. Not only is it...
  2. Install a Ruby Gem From Your Local Linux Server Installing a gem locally is extremelly easy if you follow...
  3. Linux CLI Commands For Windows The best way I have found to emulate Linux commands...
  4. Gentoo Linux: eth0 Stops Working During Install Using Minimal Install CD I started an install of Gentoo Linux this morning on...
  5. Install istat On a CentOS Linux to Monitor Server from iPhone or Touch The istat application is a monitoring application use to obtain...

Tags: , , , , , , , , , , , , , ,
Leave a Reply