Axel Etzold | 15 May 12:51

Re: CAPTCHA gem


-------- Original-Nachricht --------
> Datum: Thu, 15 May 2008 19:16:41 +0900
> Von: Ss Kk <1shweta2 <at> gmail.com>
> An: ruby-talk <at> ruby-lang.org
> Betreff: Re: CAPTCHA gem

> Axel Etzold wrote:
> > -------- Original-Nachricht --------
> >> Datum: Thu, 15 May 2008 17:55:06 +0900
> >> Von: Ss Kk <1shweta2 <at> gmail.com>
> >> An: ruby-talk <at> ruby-lang.org
> >> Betreff: CAPTCHA gem
> > 
> >> Application Trace | Framework Trace | Full Trace
> >> 
> >> d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> >> `gem_original_require'
> >> d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> >> `require'
> >> 
> > 
> > Hello,
> > 
> > do you require rubygems in your script, ie., do you have a line
> > 
> > require "rubygems"
> > 
> > before
> > 
> > require "captcha" ...
> > 
> > in your script ?
> > Maybe you can post some shortened bit of code ...
> > 
> > Best regards,
> > 
> > Axel
> 
> Hi,
>     Thanks for your reply Butit is not making any change ,Still same 
> error
> 
> 
> Here is code of my user controller:
> require 'rubygems'
> require 'captcha'//Gives error to this line
> 
> class UserController < ApplicationController
> 
>   def register
>      var= CAPTCHA::Web.new
>      var.to_html("captcha_temp")
>   end
> end
> 
> And code of Captcha file: ,you will get :
> 
> "D:\ruby\lib\ruby\gems\1.8\gems\captcha-0.1.2\lib\captcha.rb"
> (If installed Captha gem)
> 
> 
> Tell me what's going wrong.
> -- 
> Posted via http://www.ruby-forum.com/.

Hello,

there is a dependency problem. The captcha gem wants to load
the GD library

http://www.boutell.com/gd/

(which is not written in Ruby).
You'll have to install that and probably one of the Ruby bindings
to GD. 
From a search on Rubyforge, I gather that the Ruby gem GD is now
called ruby-gd.
As the captcha gem you're trying to install has its last release
on March 28, 2004 and the now-name-changed GD/ruby-gd gem releases only
one file, from  January, 30th, 2007, there might have happened some changes
in the meantime, I'm afraid :-(

Maybe it's good idea to contact the author of the ruby-gd gem
to ask for help ... or use some other turing test gem, like turing.

Best regards,

Axel 

--

-- 
249 Spiele für nur 1 Preis. Die GMX Spieleflatrate schon ab 9,90 Euro.
Neu: Asterix bei den Olympischen Spielen: http://flat.games.gmx.de


Gmane