Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random installation failures #42

Closed
Numbluk opened this issue Sep 14, 2018 · 3 comments
Closed

Random installation failures #42

Numbluk opened this issue Sep 14, 2018 · 3 comments

Comments

@Numbluk
Copy link

Numbluk commented Sep 14, 2018

I was attempting to install rdkafka-ruby with gem install rdkafka -v '0.3.5'. It failed several times in a row with:

Building native extensions. This could take a while...
ERROR:  Error installing rdkafka:
	ERROR: Failed to build gem native extension.

    current directory: /home/lukas/.rvm/gems/ruby-2.5.0/gems/rdkafka-0.3.5/ext
/usr/share/rvm/rubies/ruby-2.5.0/bin/ruby -rrubygems /home/lukas/.rvm/gems/ruby-2.5.0@global/gems/rake-12.3.0/exe/rake RUBYARCHDIR=/home/lukas/.rvm/gems/ruby-2.5.0/extensions/x86_64-linux/2.5.0/rdkafka-0.3.5 RUBYLIBDIR=/home/lukas/.rvm/gems/ruby-2.5.0/extensions/x86_64-linux/2.5.0/rdkafka-0.3.5
2 retrie(s) left for v0.11.3.tar.gz
1 retrie(s) left for v0.11.3.tar.gz
0 retrie(s) left for v0.11.3.tar.gz
nil can't be coerced into Integer
Extracting v0.11.3.tar.gz into tmp/x86_64-linux-gnu/ports/librdkafka/0.11.3... ERROR, review '/home/lukas/.rvm/gems/ruby-2.5.0/gems/rdkafka-0.3.5/ext/tmp/x86_64-linux-gnu/ports/librdkafka/0.11.3/extract.log' to see what happened. Last lines are:
========================================================================
tar (child): ports/archives/v0.11.3.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
========================================================================
rake aborted!
Failed to complete extract task
/home/lukas/.rvm/gems/ruby-2.5.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:400:in `block in execute'
/home/lukas/.rvm/gems/ruby-2.5.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:371:in `chdir'
/home/lukas/.rvm/gems/ruby-2.5.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:371:in `execute'
/home/lukas/.rvm/gems/ruby-2.5.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:365:in `extract_file'
/home/lukas/.rvm/gems/ruby-2.5.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:61:in `block in extract'
/home/lukas/.rvm/gems/ruby-2.5.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:60:in `each'
/home/lukas/.rvm/gems/ruby-2.5.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:60:in `extract'
/home/lukas/.rvm/gems/ruby-2.5.0/gems/mini_portile2-2.2.0/lib/mini_portile2/mini_portile.rb:150:in `cook'
/home/lukas/.rvm/gems/ruby-2.5.0/gems/rdkafka-0.3.5/ext/Rakefile:10:in `block in <top (required)>'
/home/lukas/.rvm/gems/ruby-2.5.0@global/gems/rake-12.3.0/exe/rake:27:in `<main>'
Tasks: TOP => default
(See full trace by running task with --trace)

rake failed, exit code 1

Gem files will remain installed in /home/lukas/.rvm/gems/ruby-2.5.0/gems/rdkafka-0.3.5 for inspection.
Results logged to /home/lukas/.rvm/gems/ruby-2.5.0/extensions/x86_64-linux/2.5.0/rdkafka-0.3.5/gem_make.out

Out of the blue it ended up working with the same command:

gem install rdkafka -v '0.3.5'
Building native extensions. This could take a while...
Successfully installed rdkafka-0.3.5
Parsing documentation for rdkafka-0.3.5
Installing ri documentation for rdkafka-0.3.5
Done installing documentation for rdkafka after 0 seconds
1 gem installed

It may or may not be worth noting that I'm running elementary OS 0.4.1 Loki (Ubuntu).

@will-clarke
Copy link

I also had this problem on a mac
(tar (child): ports/archives/v0.11.3.tar.gz: Cannot open: No such file or directory)
which I also solved by just retrying it.. 🤔

Any ideas on what could be going on?

@thijsc
Copy link
Collaborator

thijsc commented Sep 14, 2018

It downloads the rdkafka release from GitHub. Probably that was unreachable for you. I'll see if it's possible to get miniportile to give a more a clear error message.

@thijsc
Copy link
Collaborator

thijsc commented Sep 24, 2018

This should be fixed with version 0.4.0.

@thijsc thijsc closed this as completed Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants