Skip to content

bundle install fails to install kindlegen #214

Closed

Description

@cdwilson

bundle install fails because kindlegen -v '2.9.3' is broken by amazon changing the zip format. This is fixed in kindlegen -v '2.9.4'

Please see tdtds/kindlegen#12 for more details.

Activity

  1. ben commented on Dec 22, 2014

    @ben
    Member

    Fixed by merging #215.

  2. duycoder commented on Apr 22, 2019

    @duycoder

    I have this issue when running bundle install

    Fetching https://github.com/asciidoctor/asciidoctor-epub3
    Fetching gem metadata from https://rubygems.org/...........
    Resolving dependencies...
    Using rake 12.3.2
    Using Ascii85 1.0.3
    Using public_suffix 3.0.3
    Using addressable 2.6.0
    Using afm 0.2.2
    Using asciidoctor 1.5.6.1
    Using concurrent-ruby 1.1.5
    Using mini_portile2 2.4.0
    Using nokogiri 1.10.2 (x64-mingw32)
    Using rubyzip 1.2.2
    Using gepub 1.0.3
    Using thread_safe 0.3.6
    Using asciidoctor-epub3 1.5.0.alpha.10.dev from https://github.com/asciidoctor/asciidoctor-epub3 (at master@5dde009)
    Using pdf-core 0.7.0
    Using ttfunk 1.5.1
    Using prawn 2.2.2
    Using prawn-icon 1.3.0
    Using css_parser 1.7.0
    Using prawn-svg 0.27.1
    Using prawn-table 0.2.2
    Using hashery 2.1.2
    Using ruby-rc4 0.1.5
    Using pdf-reader 2.2.0
    Using prawn-templates 0.1.1
    Using safe_yaml 1.0.5
    Using polyglot 0.3.5
    Using treetop 1.5.3
    Using asciidoctor-pdf 1.5.0.alpha.16
    Using awesome_print 1.8.0
    Using bundler 2.0.1
    Using coderay 1.1.2
    Using epubcheck 3.0.1
    Using json 2.2.0
    Fetching kindlegen 3.0.3
    Installing kindlegen 3.0.3 with native extensions
    Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
    
    current directory:
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/kindlegen-3.0.3/ext
    C:/Ruby26-x64/bin/ruby.exe -rrubygems
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/rake-12.3.2/exe/rake
    RUBYARCHDIR\=C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/kindlegen-3.0.3
    RUBYLIBDIR\=C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/kindlegen-3.0.3
    rake aborted!
    NameError: uninitialized constant Zip::Entry::Pathname
    
    Tasks: TOP => default => install => kindlegen.exe
    (See full trace by running task with --trace)
    open(http://kindlegen.s3.amazonaws.com/kindlegen_win32_v2_9.zip)
    save to kindlegen_win32_v2_9.zip
    win-unzip kindlegen_win32_v2_9.zip
    
    rake failed, exit code 1
    
    Gem files will remain installed in
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/kindlegen-3.0.3 for inspection.
    Results logged to
    C:/Ruby26-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/kindlegen-3.0.3/gem_make.out
    
    An error occurred while installing kindlegen (3.0.3), and Bundler cannot
    continue.
    Make sure that `gem install kindlegen -v '3.0.3' --source
    'https://rubygems.org/'` succeeds before bundling.
    
    In Gemfile:
    kindlegen
    

    I tried to install kindlegen by : gem install kindlegen -v '3.0.3' --source 'https://rubygems.org/'. Not working at all!
    Do you have any idea?
    Anyway, i am newbie.

  3. aollier commented on Apr 23, 2019

    @aollier
    Contributor

    Try this:

    $ rm Gemfile.lock
    $ bundle install
  4. Sherry520 commented on Aug 10, 2024

    @Sherry520
    Contributor

    Installing kindlegen 3.1.1 failed. And I noticed the download url is https://web.archive.org/web/20150803131026/https://kindlegen.s3.amazonaws.com/kindlegen_linux_2.6_i386_v2_9.tar.gz
    It seems because the website certificate expired
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions