dubstep
September 1, 2011, 6:54am
1
I experienced the following when installing the Rails 3.1 gem updates on
Windows:
Installing gem bcrypt-ruby-3.0.0-java
Building native extensions. This could take a while…
ERROR: Error installing bcrypt-ruby:
ERROR: Failed to build gem native extension.
D:/jruby/bin/jruby.exe extconf.rb
make
‘make’ is not recognized as an internal or external command, operable
program or batch file.
alexd
September 1, 2011, 7:19am
2
I just installed it fine on Jruby 1.6.3 on linux but it also failed on
windows.
The fact that it is talking about make files makes me wonder if it needs
the ruby devkit installed?
alexd
September 1, 2011, 7:48am
3
On Thu, Sep 1, 2011 at 7:18 AM, Jeffrey J. [email protected]
wrote:
I just installed it fine on Jruby 1.6.3 on linux but it also failed on
windows.
The fact that it is talking about make files makes me wonder if it needs the
ruby devkit installed?
not with java: on top of this, the jar containing the java extension
is already compiled…
ERROR: Failed to build gem native extension.
D:/jruby/bin/jruby.exe extconf.rb
make
‘make’ is not recognized as an internal or external command, operable
program or batch file.
I see the same issue when installing v3.0.0 of bcrypt: I guess that
either the gemspec is corrupted, or it’s not java specific. v2.1.4
works fine: maybe comparing both gems’ content could help.
I suggest to contact the authors of this gem directly: this is not a
jruby specific issue, I believe.
–
Christian
alexd
September 1, 2011, 8:49am
4
I noticed that the issue has been previously reported on github:
opened 09:00PM - 29 Aug 11 UTC
closed 08:51PM - 12 Sep 11 UTC
"jruby -S bundle install" using rails 3.1.0.rc8
```
Installing bcrypt-ruby (3.0… .0) with native extensions Gem::Installer::ExtensionB
uildError: ERROR: Failed to build gem native extension.
c:/jruby-1.6.4/bin/jruby.exe extconf.rb
make
'make' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bcrypt-
ruby-3.0.0-java for inspection.
Results logged to c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bcrypt-ruby-3.0.0-java/e
xt/mri/gem_make.out
build_extensions at c:/jruby-1.6.4/lib/ruby/site_ruby/1.8/rubygems/installer.r
b:529
each at org/jruby/RubyArray.java:1603
build_extensions at c:/jruby-1.6.4/lib/ruby/site_ruby/1.8/rubygems/installer.r
b:482
install at c:/jruby-1.6.4/lib/ruby/site_ruby/1.8/rubygems/installer.r
b:156
install at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/source.rb:101
preserve_paths at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/rubygems_integration.rb:78
install at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/source.rb:91
run at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/installer.rb:58
with_build_args at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/rubygems_integration.rb:93
run at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/installer.rb:57
each at org/jruby/RubyArray.java:1603
__send__ at org/jruby/RubyBasicObject.java:1685
each at c:/jruby-1.6.4/lib/ruby/1.9/forwardable.rb:182
run at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/installer.rb:49
install at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/installer.rb:8
install at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/cli.rb:220
__send__ at org/jruby/RubyBasicObject.java:1685
send at org/jruby/RubyKernel.java:2113
run at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/vendor/thor/task.rb:21
invoke_task at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/vendor/thor/invocation.rb:118
dispatch at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/vendor/thor.rb:263
start at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/b
undler/vendor/thor/base.rb:386
(root) at c:/jruby-1.6.4/lib/ruby/gems/1.8/gems/bundler-1.0.18/bin/b
undle:13
load at org/jruby/RubyKernel.java:1073
(root) at c:/jruby-1.6.4/bin/bundle:19
```
For a quick fix I downloaded the source, built the gems, deleted the non-java .gem, and then ran "jruby -S gem install bcrypt-ruby" from the /pkg directory. (This might be more of a bundler/rubygems problem?)
Using jruby 1.6.4 (ruby-1.9.2-p136)
On Thu, Sep 1, 2011 at 1:47 AM, Christian MICHON
<[email protected]