require error in gems

B

BENI

I have installed rubyzip gems .

I have it jolly well in C:\ruby\lib\ruby\gems\1.8\gems\rubyzip-0.9.1

Now in irb i get

C:\ruby>irb
irb(main):001:0> require 'rubyzip'
LoadError: no such file to load -- rubyzip
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `ge
m_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `re
quire'
from (irb):1
irb(main):002:0>


why so any hint.

Regards
 
M

Mark Bush

Mark said:
require 'rubygems'
require 'rubyzip'

Sorry - ignore that - it looks like you must already be including
rubygems somehow as your error comes from gems, not the standard
require.
 
M

Mark Bush

BENI said:
C:\ruby>irb
irb(main):001:0> require 'rubyzip'

For some reason best known to the gem author, the actual incantation is:

require 'rubygems' # if this is not previously included
require 'zip/zip'

Have a look at the scripts in the sample directory inside the installed
gem for more clues.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top