Git Product home page Git Product logo

archive_io's People

Contributors

amekss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

envek

archive_io's Issues

Question: How to get or change underlying libarchive version that is in use?

Hi! Thank you for a nice gem.

I'm trying to play with it on OS X machine with some huge RAR archives (3 GiBs with files of 2 and 18 GBcompressed XML in it).

Libarchive wiki says, that RAR format is supported since 3.0, so I've installed latest libarchive (3.2.1) from Homebrew.

But I'm trying next snippet:

require 'archive_io'
archive = ArchiveIO.open(File.expand_path('~/Downloads/fias_xml.rar'))
archive.each { |cursor| puts cursor.pathname }

and getting such an error:

ArchiveIO::LibArchive::Error: Unrecognized archive format

Questions

  1. How I can get know which libarchive (system or from Homebrew) is being used?
  2. How I can tell Ruby FFI to use libarchive from Homebrew?

I've played with Ruby's $LOAD_PATH and system LD_LIBRARY_PATH environment variable, but with no luck (tried to feed /usr/local/opt/libarchive/lib to them).

Any thoughts?

You can download archive for testing from this page: http://fias.nalog.ru/Updates.aspx (e.g. http://fias.nalog.ru/Public/Downloads/20160825/fias_delta_xml.rar )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.