Ok .. so looks like I have finally found a solution. First of all, I had a typo in my last post.
> irb(main):002:0> require 'beanstalkd-client' > LoadError: no such file to load -- beanstalkd-client > from (irb):2:in `require' > from (irb):2 Its actually beanstalk-client and even that was not loading. So the problem was still there and I looked around a little more after this and in the beanstalk-client folder, I found a script called setup.rb. I ran this as root and it installed the files in /usr/lib64/ruby/ site_ruby/1.8/beanstalk-client and everything started working :) I am not sure if this step is needed or why things were failing initially but its all working now Regards Prateek Prateek Dayal wrote: > Hi > > I have been trying to debug this for sometime now and thought it may > be best to ask someone. Mostly I am not able to believe what I see :) > > I have installed the beanstalk-client gem in gentoo amd 64 and I can > see it in /usr/lib/ruby/gems/1.8/gems/beanstalk-client-1.0.2/ . > However going to irb if I try to require it, I get an error > > irb(main):002:0> require 'beanstalkd-client' > LoadError: no such file to load -- beanstalkd-client > from (irb):2:in `require' > from (irb):2 > > I have also tried this > > irb(main):002:0> require 'rubygems' > => true > irb(main):003:0> require 'beanstalk-client' > LoadError: no such file to load -- beanstalk-client > from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' > from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' > from (irb):3 > > Here are the ruby and gems version > prat...@marvin:~/work/muziboo/muzsvn/muz$ gem -v > 1.3.1 > prat...@marvin:~/work/muziboo/muzsvn/muz$ ruby -v > ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux] > > Strangely, If I go to to the lib folder that contains the beanstalk- > client.rb file, it works > > prat...@marvin:~/work/muziboo/muzsvn/muz$ cd /usr/lib/ruby/gems/1.8/ > gems/beanstalk-client-1.0.2/lib/ > prat...@marvin:/usr/lib/ruby/gems/1.8/gems/beanstalk-client-1.0.2/lib$ > ls > beanstalk-client beanstalk-client.rb > prat...@marvin:/usr/lib/ruby/gems/1.8/gems/beanstalk-client-1.0.2/lib$ > irb > irb(main):001:0> require 'beanstalk-client' > => true > > I am able to load other gems as usual. Any help here would be > appreciated > > Regards > Prateek --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "beanstalk-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/beanstalk-talk?hl=en -~----------~----~----~----~------~----~------~--~---
