From: Vassilis Rizopoulos Date: 2008-05-15T19:42:53+09:00 Subject: Re: CAPTCHA gem Ss Kk wrote: > Hi All, > > I am using 'captcha gem' in my code to implement 'CAPTCHA' > functionality ,It gives following error : > --------------------------------------------------------------------------------------------------------- > MissingSourceFile in UserController#sign_in > > no such file to load -- GD > > RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace > | Full Trace > > d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' Well, from what you posted, require 'rubygems' is done somewhere in the code you load (that's the custom_require line right there) and I guess the captcha gem tries to load GD and cannot find it. So your problem is either that GD is not correctly installed or that you don't have the correct GD version. Try to isolate the problem by making a small unit test of just a test program that does only the one thing you're trying to do here: require 'rubygems' require 'captcha' var= CAPTCHA::Web.new p var.to_html("captcha_temp") so that you don't have all the Rails snick-snack to wade through. Also, here's a link to a discussion talking about the captcha gem http://groups.google.com/group/uso-dev/browse_thread/thread/63642201fb194e0d I think it mentions that it needs the ruby-gd gem and that that gem is source-only (so you need to compile yourself) V.- -- http://www.braveworld.net/riva