Gem install of rubyzip working, but not

I installed the rubyzip gem with the command:

roboticbuddha:documents User$ gem install rubyzip
Successfully installed rubyzip-0.9.1
1 gem installed
roboticbuddha:documents User$

Everything looks fine, but when I try to run a script:

require ‘zip/zipfilesystem’

It bombs, saying:

roboticbuddha:documents User$ ruby docxreader.rb
docxreader.rb:2:in `require’: no such file to load – zip/zipfilesystem
(LoadError)
from docxreader.rb:2

I’ve updated gems with the “sudo gem update --system” command and
installed rubyzip again. No luck.

Any ideas??

Thanks,
Nathan

Nathan L. wrote:

Any ideas??

Thanks,
Nathan

Always need to

require ‘rubygems’

first when using gems.

-Justin

Justin C. wrote:

Nathan L. wrote:

Any ideas??

Thanks,
Nathan

Always need to

require ‘rubygems’

first when using gems.

-Justin

Thanks! Crazy that I’ve never done that before, but I have used gems
that I’ve installed. Weird.

Nathan L. wrote:

Always need to

Depending on your environment, it may be done automatically for you.

-Justin