Captcha Trouble

Hello Rails, I have a problem.

I would like to use captcha in one of my project. When I did try to
install, this is what I got

$ sudo gem install captcha
Building native extensions. This could take a while…
ERROR: Error installing captcha:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require’: no such file to load – mkmf (LoadError)
from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/
rmagick-2.12.2 for inspection.
Results logged to /var/lib/gems/1.8/gems/rmagick-2.12.2/ext/RMagick/
gem_make.out

Could any one help me out on this?

Looks like you are missing the tools to build the extensions. If you
are on a Debain based distro, try

sudo apt-get install build-essential

If that doesn’t work, search for guides on installing rails on Debian
systems.

On Sat, Feb 20, 2010 at 7:39 AM, Karthikeyan [email protected]
wrote:

/usr/bin/ruby1.8 extconf.rb


You received this message because you are subscribed to the Google G. “Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Curtis C.
[email protected]
home:http://curtiscooley.com
blog:http://ponderingobjectorienteddesign.blogspot.com

Leadership is a potent combination of strategy and character. But if
you must be without one, be without the strategy.
– H. Norman Schwarzkopf

On Sat, Feb 20, 2010 at 8:50 AM, Karthikeyan [email protected]
wrote:

This is looking like rocket science to me.

Sorry, can’t help much there. I’m still learning Rails and find that
building my own instead of using plugins helps me grok things better.
Like rolling my own authentication and authorization.

For example, instead of captchas for user validation, I use a simple
email challenge. Of course that meant I had to learn ActionMailer, but
that’s built in.


Curtis C.
[email protected]
home:http://curtiscooley.com
blog:http://ponderingobjectorienteddesign.blogspot.com

Leadership is a potent combination of strategy and character. But if
you must be without one, be without the strategy.
– H. Norman Schwarzkopf

Got captcha installed. But when I tried ( refering
http://rdoc.info/projects/zendesk/captcha )

$rake captcha:generate COUNT=250

It gave the following output

rake aborted!
Don’t know how to build task ‘captcha:generate’

This is looking like rocket science to me.

Has any one else run into the following problem?

use captcha service:
http://captchator.com/

2010/2/21 Karthikeyan [email protected]

email challenge. Of course that meant I had to learn ActionMailer, but
– H. Norman Schwarzkopf


tommy xiao
E-mail: xiaods(AT)gmail.com

Thanks a lot! Thanks to all who have taken pains to answer this
question. I found perfect solution in
http://www.codeandcoffee.com/2007/06/implementing-a-captcha-with-ruby-on-rails-in-10-minutes-or-less/
. I haven’t tested catchcaptor.com , but it looks impressive.

Hope this discussion will be helpful to those who are having trouble
with captcha.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs