rubyzip problem

Discussion in 'Ruby' started by DaZoner, Mar 16, 2005.

  1. DaZoner

    DaZoner Guest

    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
     
    DaZoner, Mar 16, 2005
    #1
    1. Advertising

  2. 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" <> wrote in message news:<d1admo$a41$>...
    > 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
     
    Thomas Sondergaard, Mar 17, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Thomas

    [ANN] rubyzip-0.5.0

    Thomas, Aug 22, 2003, in forum: Ruby
    Replies:
    0
    Views:
    102
    Thomas
    Aug 22, 2003
  2. James Britt
    Replies:
    5
    Views:
    312
  3. Robert Evans
    Replies:
    3
    Views:
    248
    Robert Evans
    Sep 30, 2005
  4. Dan
    Replies:
    1
    Views:
    113
    Jérôme Loyet
    Dec 14, 2006
  5. Replies:
    1
    Views:
    124
Loading...

Share This Page