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

emit error when install in ubuntu 18.10 #5

Closed
jasonzhouu opened this issue Apr 10, 2019 · 11 comments
Closed

emit error when install in ubuntu 18.10 #5

jasonzhouu opened this issue Apr 10, 2019 · 11 comments

Comments

@jasonzhouu
Copy link

> uname -a
Linux lenovo 4.18.0-16-generic #17-Ubuntu SMP Fri Feb 8 00:06:57 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
> ruby --version
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
> gem --version
3.0.3
> sudo gem install sibit
Fetching bitcoin-0.2.0.gem
Fetching eventmachine-1.2.7.gem
Fetching bitcoin-ruby-0.0.19.gem
Fetching ffi-compiler-1.0.1.gem
Fetching scrypt-3.0.6.gem
Fetching json-2.2.0.gem
Fetching slop-4.6.2.gem
Fetching sibit-0.3.0.gem
Fetching ethon-0.12.0.gem
Fetching typhoeus-1.3.1.gem
Building native extensions. This could take a while...
ERROR:  Error installing sibit:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/ffi-1.10.0/ext/ffi_c
/usr/bin/ruby2.5 -I /usr/local/lib/site_ruby/2.5.0 -r ./siteconf20190411-32653-2ruag8.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1
@jasonzhouu jasonzhouu changed the title emit error when install in ubuntu 18.04 emit error when install in ubuntu 18.10 Apr 10, 2019
@yegor256
Copy link
Owner

@jasonzhouu you have to install ruby-dev, I believe:

$ sudo apt-get install ruby-dev

@yegor256
Copy link
Owner

@jasonzhouu or maybe I should just get rid of this typhoeus dependency. Hold on...

@jasonzhouu
Copy link
Author

jasonzhouu commented Apr 11, 2019

@jasonzhouu you have to install ruby-dev, I believe:

$ sudo apt-get install ruby-dev

Thank you for the reply, but after install ruby-dev the problem still exists.

> sudo gem install sibit
Building native extensions. This could take a while...
Successfully installed ffi-1.10.0
Successfully installed ffi-compiler-1.0.1
Building native extensions. This could take a while...
ERROR:  Error installing sibit:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/scrypt-3.0.6/ext/scrypt
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RUBYARCHDIR\=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/scrypt-3.0.6 RUBYLIBDIR\=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/scrypt-3.0.6
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)

rake failed, exit code 1

yegor256 added a commit that referenced this issue Apr 11, 2019
yegor256 added a commit that referenced this issue Apr 11, 2019
@yegor256
Copy link
Owner

@rultor release, tag is 0.3.1

@rultor
Copy link
Collaborator

rultor commented Apr 11, 2019

@rultor release, tag is 0.3.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Apr 11, 2019

@rultor release, tag is 0.3.1

@yegor256 Done! FYI, the full log is here (took me 4min)

@yegor256
Copy link
Owner

@jasonzhouu try again please

@jasonzhouu
Copy link
Author

jasonzhouu commented Apr 11, 2019

@jasonzhouu try again please

Thank you for quick fix, but the problem still exists on Ubuntu 18.10

> sudo gem install sibit
Fetching sibit-0.3.1.gem
Building native extensions. This could take a while...
ERROR:  Error installing sibit:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/scrypt-3.0.6/ext/scrypt
/usr/bin/ruby2.5 -rrubygems /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake RUBYARCHDIR\=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/scrypt-3.0.6 RUBYLIBDIR\=/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/scrypt-3.0.6
/usr/bin/ruby2.5: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-12.3.1/exe/rake (LoadError)

rake failed, exit code 1

@jasonzhouu
Copy link
Author

jasonzhouu commented Apr 11, 2019

install successfully on macOS 10.14.2

> uname -a
Darwin mac.local 18.2.0 Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64
> sudo gem install sibit -n /usr/local/bin
Successfully installed bitcoin-ruby-0.0.19
Successfully installed bitcoin-0.2.0
Building native extensions. This could take a while...
Successfully installed json-2.2.0
Successfully installed slop-4.6.2
Successfully installed sibit-0.3.1
Parsing documentation for bitcoin-ruby-0.0.19
Installing ri documentation for bitcoin-ruby-0.0.19
Parsing documentation for bitcoin-0.2.0
Installing ri documentation for bitcoin-0.2.0
Parsing documentation for json-2.2.0
Installing ri documentation for json-2.2.0
Parsing documentation for slop-4.6.2
Installing ri documentation for slop-4.6.2
Parsing documentation for sibit-0.3.1
Installing ri documentation for sibit-0.3.1
Done installing documentation for bitcoin-ruby, bitcoin, json, slop, sibit after 5 seconds
5 gems installed
> sibit --help
Usage (0.3.1): sibit [options] command [args]
Commands are:
    generate: Generate a new private key
    create:   Create a public Bitcoin address from the key
    balance:  Check the balance of the Bitcoin address
    pay:      Send a new Bitcoin transaction
Options are:
    --help     Read this: https://github.com/yegor256/sibit
    --verbose  Print all possible debug messages

yegor256 added a commit that referenced this issue Apr 11, 2019
@yegor256
Copy link
Owner

@jasonzhouu see 499689f

@jasonzhouu
Copy link
Author

jasonzhouu commented Apr 11, 2019

@jasonzhouu see 499689f

Success! Thank you~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants