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
Post a Comment
eSpace podcast Prodcast
Archive
- September 2011
- April 2011
- March 2011
- December 2010
- November 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- November 2008
- October 2008
- September 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- January 2008
- April 2007
- March 2007
Latest Comments
- SpectraMind Commented on Egypt Wins UK's National Outsourcing Association Award
- Rofaida Awad Commented on Go Egypt Go!
- Different Mike Commented on Only idiots change their iPhone root password!
- Mike Commented on Only idiots change their iPhone root password!
- smile Commented on Only idiots change their iPhone root password!

