Rmagick installed but captcha doesn't work ?

1

Rmagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing library. Earlier on , with ruby version 1.8.5, we used to install rmagick by installing these debian packages (librmagick-ruby and librmagick-ruby1.8) and not with gem install rmagick command, so as to save around 1 hour of compiling the dependencies that rmagick needs. These 2 packages are not valid if you decided to upgrade your Ruby to Ruby enterprise, as you will get errors related to rmagick, especially if you have captcha.

All your errors will be fixed if you just compile imagemagick with the default configurations then install rmagick via "gem install rmagick", but if you have captcha, it still won't work. The captcha needs a special operator to be added when you compile imagemagick so you won't just type ./configure to get the default options, instead you will have to compile imagemagick like this:
#apt-get install libfreetype6 libfreetype6-dev libjpeg62 libjpeg62-dev libtiff4 libtiff4-dev libpng12-0 libpng12-dev libwmf0.2-7 gsfonts

* Download the latest version from www.imagemagick.org.

* untar the file then change directory to it.
#./configure --disable-static --with-modules --with-gs-font-dir=/usr/share/fonts/type1/gsfonts
#make
#make install

Then reinstall rmagick, and the captcha will work normally. For more information about Rmagick website:  http://rmagick.rubyforge.org

Written By:

Mohamed Sanad

 

Comments

1

rmagic has a lot of bugs, so i don't really like to use it

Post a Comment

eSpace podcast Prodcast

RSS iTunes