I''m implementing captcha feature on my site, but having problem in installing GD. I want to use captcha gem, so I installed GD2 through darwinport. sudo port install gd2 And then, I installed gd gem and captcha gem. sudo gem install gd2 sudo gem install captcha However, I''m still having error message as follows: no such file to load -- GD ... .. This error occured while loading the following files: captcha.rb GD I''m using MacBook Pro for the development. Has anyone successfully installed GD on OS X? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
This isn''t what you asked (as I''ve never tried to compile GD on OS X) but why don''t you try ImageMagick & RMagick (the ruby binding). http://rmagick.rubyforge.org/install-osx.html (PS, lib tiff seems to be fixed in the ports). -carl On 10/9/06, Jay L. <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I''m implementing captcha feature on my site, but having problem in > installing GD. > I want to use captcha gem, so I installed GD2 through darwinport. > > sudo port install gd2 > > And then, I installed gd gem and captcha gem. > > sudo gem install gd2 > sudo gem install captcha > > However, I''m still having error message as follows: > > no such file to load -- GD > ... > .. > This error occured while loading the following files: > captcha.rb > GD > > I''m using MacBook Pro for the development. Has anyone successfully > installed GD on OS X? > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Carl Lerche wrote:> This isn''t what you asked (as I''ve never tried to compile GD on OS X) > but why don''t you try ImageMagick & RMagick (the ruby binding). > > http://rmagick.rubyforge.org/install-osx.html > > (PS, lib tiff seems to be fixed in the ports). > > -carlI tried rmagick but couldn''t find nice captcha solution with this. Can you point me something if you know one? BTW, I''m not sure I''m figuring it out correctly, but I think RoR can''t find GD installation. GD is installed under /opt/local where darwinport maintains all the sources and binaries, and RoR is installed under /usr/local. I followed this instruction (http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger) when I installed RoR, and now I wonder if gd works if I installed RoR and everything with darwinport. However, I''m trying to install gd from source to make everything is under /usr/local but having problem in compiling with some libraries. Frustrating :( -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---