[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Gem install of rubyzip working, but not.

Nathan Loyer

7/24/2008 1:15:00 PM

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
--
Posted via http://www.ruby-....

3 Answers

Justin Collins

7/24/2008 11:33:00 PM

0

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

Nathan Loyer

7/25/2008 3:44:00 PM

0

Justin Collins wrote:
> Nathan Loyer 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.
--
Posted via http://www.ruby-....

Justin Collins

7/25/2008 7:25:00 PM

0

Nathan Loyer wrote:
> Justin Collins wrote:
>
>> Nathan Loyer 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.
>

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

-Justin