Hi Ian

Thanks for the email. I have

prat...@marvin:~$ ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]
prat...@marvin:~$ gem -v
1.3.1
prat...@marvin:~$ which gem
/usr/bin/gem

Are these incompatible? You are correct about debian thing. I am using
gentoo and since it uses a package management thing too (emerge), it
may be having similar issues.

Regards
Prateek



On Fri, Feb 6, 2009 at 8:57 PM, ian eyberg <i...@telematter.com> wrote:
>
> fyi,
>  You might want to do a:
>
>  ruby -v
>  gem -v
>
> Sounds like you have two different ruby/gem installations. I've seen
> this a lot when upgrading to gems 1.3 -- by chance are you using debian
> or a derivative like ubuntu? they have been notorious for the past year
> or so of really screwing up their packages w/ruby
>
> to fix in the future you can either
>  a) rm -rf the older gem installation
>  b) symlink it to your new one
>  c) set your path to the correct ruby installation
>
> glad you got it working,
> -Ian
>
> On 23:31 Thu 05 Feb     , Prateek Dayal wrote:
>>
>> 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
>> >
>
> >
>



-- 
Prateek Dayal
www.prateekdayal.net/blog

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to beanstalk-talk@googlegroups.com
To unsubscribe from this group, send email to 
beanstalk-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to