Justin Collins
7/24/2008 11:33:00 PM
Nathan Loyer wrote:
> 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
>
Always need to
require 'rubygems'
first when using gems.
-Justin