[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

rubyzip problem

DaZoner

3/16/2005 10:59:00 PM


I'm trying to install rubyzip 0.5.7 on my XP machine (One Click Installed
Ruby 1.8.2-14) from the provided install.rb and I'm getting the error below.
The file exists in the lib\zip subdir beneath install.rb and not in the zip
subdir where its looking for it. Anyone know who deals with rubyzip?


C:\temp\rubyzip\rubyzip-0.5.7>install.rb

C:/temp/rubyzip/rubyzip-0.5.7/zip/stdrubyext.rb ->
c:/ruby/lib/ruby/site_ruby/1.8/zip/stdrubyext.rb
c:/ruby/lib/ruby/1.8/ftools.rb:62:in `stat': No such file or directory -
C:/temp/rubyzip/rubyzip-0.5.7/zip/stdrubyext.rb (Errno::ENOENT)
from c:/ruby/lib/ruby/1.8/ftools.rb:62:in `syscopy'
from c:/ruby/lib/ruby/1.8/ftools.rb:92:in `cp'
from c:/ruby/lib/ruby/1.8/ftools.rb:248:in `install'
from C:/temp/rubyzip/rubyzip-0.5.7/install.rb:21
from C:/temp/rubyzip/rubyzip-0.5.7/install.rb:18:in `each'
from C:/temp/rubyzip/rubyzip-0.5.7/install.rb:18


1 Answer

thomas

3/17/2005 5:33:00 PM

0

Sigh, I forgot to update install.rb after reorganizing the directory
structure. I can't think of a good excuse, really.

Just change the following line in install.rb:

SOURCE_DIR = File.join(File.dirname($0), "zip")

to

SOURCE_DIR = File.join(File.dirname($0), "lib/zip")

Or install the gem:

gem install rubyzip

Sorry about the inconvenience.

Thomas

"DaZoner" <bugmenot@world.com> wrote in message news:<d1admo$a41$1@news.doit.wisc.edu>...
> I'm trying to install rubyzip 0.5.7 on my XP machine (One Click Installed
> Ruby 1.8.2-14) from the provided install.rb and I'm getting the error below.
> The file exists in the lib\zip subdir beneath install.rb and not in the zip
> subdir where its looking for it. Anyone know who deals with rubyzip?
>
>
> C:\temp\rubyzip\rubyzip-0.5.7>install.rb
>
> C:/temp/rubyzip/rubyzip-0.5.7/zip/stdrubyext.rb ->
> c:/ruby/lib/ruby/site_ruby/1.8/zip/stdrubyext.rb
> c:/ruby/lib/ruby/1.8/ftools.rb:62:in `stat': No such file or directory -
> C:/temp/rubyzip/rubyzip-0.5.7/zip/stdrubyext.rb (Errno::ENOENT)
> from c:/ruby/lib/ruby/1.8/ftools.rb:62:in `syscopy'
> from c:/ruby/lib/ruby/1.8/ftools.rb:92:in `cp'
> from c:/ruby/lib/ruby/1.8/ftools.rb:248:in `install'
> from C:/temp/rubyzip/rubyzip-0.5.7/install.rb:21
> from C:/temp/rubyzip/rubyzip-0.5.7/install.rb:18:in `each'
> from C:/temp/rubyzip/rubyzip-0.5.7/install.rb:18