1st phase =>...............
I think yum will not work , So this is the technique to install ImageMagic first.
1st step: cd /usr/local/src
2nd step: wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz
3rd step: tar xvzf freetype-2.3.5.tar.gz
4th step: freetype-2.3.5
5th step: ./configure
6th step: make
7th step: make install
now Image Magic has been install on your machine.
2nd phase =>...............
now we have to install RMagick
On fedora the full command for installing rmagick is:
1st try it=>
gem install rmagick
if it dose not work you can try it..
gem install rmagick — –build-flags –enable-allow-example-errors
OR
cd /usr/local/src
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.11
./configure
export LD_LIBRARY_PATH=/usr/local/lib
echo $LD_LIBRARY_PATH
make
make install
now Its time to test :
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 “image.jpg”
=> [test.jpg JPEG 10x11 DirectClass 8-bit 391b]
irb(main):004:0> img.write “image.png”
=> [test.jpg=>test.png JPEG 10x11 DirectClass 8-bit]
irb(main):005:0>
0 comments:
Post a Comment