Trouble installing under JRuby 9.1.7.0
Closed this issue · 2 comments
mwpastore commented
I'm getting the following error trying to install sysrandom-1.0.4 under JRuby 9.1.7.0 on both macOS Sierra 10.12.2 and Ubuntu Server 14.04 LTS:
$ gem install sysrandom
Fetching: sysrandom-1.0.4.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing sysrandom:
ERROR: Failed to build gem native extension.
current directory: /Users/mwp/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/sysrandom-1.0.4/ext/sysrandom
/Users/mwp/.rbenv/versions/jruby-9.1.7.0/bin/jruby -r ./siteconf20170112-20049-jxp8ha.rb extconf.rb
creating Makefile
current directory: /Users/mwp/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/sysrandom-1.0.4/ext/sysrandom
make "DESTDIR=" clean
current directory: /Users/mwp/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/sysrandom-1.0.4/ext/sysrandom
make "DESTDIR="
make: *** No rule to make target `/Users/mwp/.rbenv/versions/jruby-9.1.7.0/lib/ruby/include/ruby/ruby.h', needed by `randombytes_sysrandom.o'. Stop.
make failed, exit code 2
Gem files will remain installed in /Users/mwp/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/gems/sysrandom-1.0.4 for inspection.
Results logged to /Users/mwp/.rbenv/versions/jruby-9.1.7.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.3.0/sysrandom-1.0.4/gem_make.out
1.0.3 installs fine:
$ gem install sysrandom -v 1.0.3
Fetching: sysrandom-1.0.3-java.gem (100%)
Successfully installed sysrandom-1.0.3-java
1 gem installed
tarcieri commented
Thanks for the report. This should be fixed now:
$ gem install sysrandom
Fetching: sysrandom-1.0.4-java.gem (100%)
Successfully installed sysrandom-1.0.4-java
1 gem installed
mwpastore commented
Thank you!