Giter Site home page Giter Site logo

Comments (9)

radar avatar radar commented on July 30, 2024

I've also been seeing reports of this same error from reviewers of my book.


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/jimmy/.rvm/rubies/ruby-2.1.4/bin/ruby -r ./siteconf20141113-3423-1p94z7i.rb extconf.rb 

make "DESTDIR=" clean
make: *** No rule to make target `clean'.  Stop.

make "DESTDIR="
make: Nothing to be done for `all'.

make "DESTDIR=" install
curl http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v2_9.tar.gz -o kindlegen_linux_2.6_i386_v2_9.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.3M  100 10.3M    0     0  6271k      0  0:00:01  0:00:01 --:--:-- 6482k
tar zxf kindlegen_linux_2.6_i386_v2_9.tar.gz
cp */kindlegen kindlegen
cp: cannot stat `*/kindlegen': No such file or directory
make: *** [kindlegen] Error 1

make install failed, exit code 2

Gem files will remain installed in /home/jimmy/.rvm/gems/ruby-2.1.4@r4iabook/gems/kindlegen-2.9.3 for inspection.
Results logged to /home/jimmy/.rvm/gems/ruby-2.1.4@r4iabook/extensions/x86_64-linux/2.1.0/kindlegen-2.9.3/gem_make.out
An error occurred while installing kindlegen (2.9.3), and Bundler cannot continue.
Make sure that `gem install kindlegen -v '2.9.3'` succeeds before bundling.

from kindlegen.

ExByt3s avatar ExByt3s commented on July 30, 2024

i had that error too

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb

make "DESTDIR=" clean
make: *** No hay ninguna regla para construir el objetivo «clean». Alto.

make "DESTDIR="
make: No se hace nada para «all».

make "DESTDIR=" install
curl http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v2_9.tar.gz -o kindlegen_linux_2.6_i386_v2_9.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.3M 100 10.3M 0 0 22731 0 0:07:55 0:07:55 --:--:-- 23805
tar zxf kindlegen_linux_2.6_i386_v2_9.tar.gz
cp /kindlegen kindlegen
cp: no se puede efectuar `stat' sobre «
/kindlegen»: No existe el archivo o el directorio
make: *** [kindlegen] Error 1

make install failed, exit code 2

Gem files will remain installed in /tmp/bundler20141113-16125-ee8o86/kindlegen-2.9.3/gems/kindlegen-2.9.3 for inspection.
Results logged to /tmp/bundler20141113-16125-ee8o86/kindlegen-2.9.3/extensions/x86_64-linux/2.1.0-static/kindlegen-2.9.3/gem_make.out
An error occurred while installing kindlegen (2.9.3), and Bundler cannot
continue.
Make sure that gem install kindlegen -v '2.9.3' succeeds before bundling.

=====another log======
cleopatra@cleopatra:~/Descargas/kindlegen-master/ext$ sudo gem install kindlegen
Building native extensions. This could take a while...
ERROR: Error installing kindlegen:
ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb

make "DESTDIR=" clean
make: *** No hay ninguna regla para construir el objetivo «clean». Alto.

make "DESTDIR="
make: No se hace nada para «all».

make "DESTDIR=" install
curl http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v2_9.tar.gz -o kindlegen_linux_2.6_i386_v2_9.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10.3M 100 10.3M 0 0 56700 0 0:03:10 0:03:10 --:--:-- 47067
tar zxf kindlegen_linux_2.6_i386_v2_9.tar.gz
cp /kindlegen kindlegen
cp: no se puede efectuar `stat' sobre «
/kindlegen»: No existe el archivo o el directorio
make: *** [kindlegen] Error 1

make install failed, exit code 2

cleopatra@cleopatra:~$ ruby -v
ruby 2.1.4p265 (2014-10-27 revision 48166) [x86_64-linux]

cleopatra@cleopatra:~$ bundle -v
Bundler version 1.7.5

cleopatra@cleopatra:~$ gem -v
2.2.2

from kindlegen.

sevenseacat avatar sevenseacat commented on July 30, 2024

Same error here.

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /home/becky/.rubies/ruby-2.1.4/bin/ruby extconf.rb 

make "DESTDIR=" clean
make: *** No rule to make target 'clean'.  Stop.

make "DESTDIR="
make: Nothing to be done for 'all'.

make "DESTDIR=" install
curl http://s3.amazonaws.com/kindlegen/kindlegen_linux_2.6_i386_v2_9.tar.gz -o kindlegen_linux_2.6_i386_v2_9.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.3M  100 10.3M    0     0   501k      0  0:00:21  0:00:21 --:--:-- 1381k
tar zxf kindlegen_linux_2.6_i386_v2_9.tar.gz
cp */kindlegen kindlegen
cp: cannot stat ‘*/kindlegen’: No such file or directory
Makefile:13: recipe for target 'kindlegen' failed
make: *** [kindlegen] Error 1

make install failed, exit code 2

Gem files will remain installed in /home/becky/.gem/ruby/2.1.4/gems/kindlegen-2.9.3 for inspection.
Results logged to /home/becky/.gem/ruby/2.1.4/extensions/x86_64-linux/2.1.0-static/kindlegen-2.9.3/gem_make.out
An error occurred while installing kindlegen (2.9.3), and Bundler cannot continue.
Make sure that `gem install kindlegen -v '2.9.3'` succeeds before bundling.

Ruby 2.1.4p265, Ubuntu 14.10.

from kindlegen.

miyagawa avatar miyagawa commented on July 30, 2024

Same error with Ruby 2.1.1. Some debugging shows that the zip file structure has changed, and it doesn't create a sub directory anymore and it explodes kindlegen file in the current directory.

HEAD to the zip file URL shows Last-Modified: Tue, 11 Nov 2014 16:12:28 GMT and homebrew formula shows a different SHA1 as the current one (and brew install kindlegen fails with the SHA1 mismatch), so I'd say Amazon has overwritten the zip file with the different file structure in it.

from kindlegen.

tdtds avatar tdtds commented on July 30, 2024

I just released 2.9.3.1, fixed error caused by changing amazon's zip format. thanks @miyagawa san!
It fails test yet on ruby 2.1.5, but works well.

from kindlegen.

tdtds avatar tdtds commented on July 30, 2024

And released 2.9.4, fixed testing error on ruby 2.1.5

from kindlegen.

radar avatar radar commented on July 30, 2024

Thank you very much @tdtds!

from kindlegen.

jordanandree avatar jordanandree commented on July 30, 2024

yes, thanks @tdtds. 2.9.4 is working perfectly for me now

from kindlegen.

ExByt3s avatar ExByt3s commented on July 30, 2024

thank you @tdtds!

from kindlegen.

Related Issues (18)

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.