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

Failure to update gems #3986

Open
aknaton opened this issue Jun 30, 2016 · 2 comments
Open

Failure to update gems #3986

aknaton opened this issue Jun 30, 2016 · 2 comments

Comments

@aknaton
Copy link

aknaton commented Jun 30, 2016

  • JRuby version: jruby 9.1.2.0 (2.3.0) 2016-05-26 7357c8f Java HotSpot(TM) 64-Bit Server VM 25.92-b14 on 1.8.0_92-b14 +jit [mswin32-x86_64](jruby -v) and command line (flags, JRUBY_OPTS, etc)
  • Operating system: Microsoft Windows [Version 10.0.10586]Microsoft Windows [Version 10.0.10586]

Other relevant info you may wish to add:

  • No gems installed by me (only the out of the box stuff here)
  • No environment variables set by me

I have a clean install of Jruby-9.1.2.0. I tried to update the default installed gems and psych fails on compiling c extensions. I guess that is correct for a JRuby installation, but why is i trying to build native extensions?

Actual command line output:

C:>jruby -S gem update
Updating installed gems
Updating psych
Building native extensions. This could take a while...
C:/jruby-9.1.2.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:56: warning: Tempfile#unlink or delete called on open file; ignoring
ERROR: Error installing psych:
ERROR: Failed to build gem native extension.

current directory: C:/jruby-9.1.2.0/lib/ruby/gems/shared/gems/psych-2.1.0/ext/psych

C:/jruby-9.1.2.0/bin/jruby.exe -r ./siteconf20160630-76020-wqd7r.rb extconf.rb
NotImplementedError: C extensions are not supported
at C:/jruby-9.1.2.0/lib/ruby/stdlib/mkmf.rb:1
require at org/jruby/RubyKernel.java:944
(root) at C:/jruby-9.1.2.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
at extconf.rb:3

extconf failed, exit code 1

Gem files will remain installed in C:/jruby-9.1.2.0/lib/ruby/gems/shared/gems/psych-2.1.0 for inspection.
Results logged to C:/jruby-9.1.2.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.3.0/psych-2.1.0/gem_make.out
Gems updated: psych

@headius
Copy link
Member

headius commented Jul 11, 2016

This should have attempted to install the "-java" version of the psych gem. It could be a RubyGems bug, or you might have caught a new psych version before @tenderlove pushed the -java version.

I'd try updating RubyGems itself and running this command again. Let us know.

@aknaton
Copy link
Author

aknaton commented Jul 12, 2016

Thanks for the reply. Here is my further findings.

I first checked the RubyGems version:

C:\Users\henri\rubyProjects>jruby -S gem --version
2.6.4

Then I updated with:

C:\Users\henri\rubyProjects>jruby -S gem update --system

New version of RubyGems:

C:\Users\henri\rubyProjects>jruby -S gem --version
2.6.6

Then I try to update again:

C:\Users\henri\rubyProjects>jruby -S gem update
Updating installed gems
Updating psych
Building native extensions. This could take a while...
C:/jruby-9.1.2.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:56: warning: Tempfile#unlink or delete called on open file; ignoring
ERROR: Error installing psych:
ERROR: Failed to build gem native extension.

current directory: C:/jruby-9.1.2.0/lib/ruby/gems/shared/gems/psych-2.1.0/ext/psych

C:/jruby-9.1.2.0/bin/jruby.exe -r ./siteconf20160712-15660-1rrt11h.rb extconf.rb
NotImplementedError: C extensions are not supported
at C:/jruby-9.1.2.0/lib/ruby/stdlib/mkmf.rb:1
require at org/jruby/RubyKernel.java:944
(root) at C:/jruby-9.1.2.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
at extconf.rb:3

extconf failed, exit code 1

Gem files will remain installed in C:/jruby-9.1.2.0/lib/ruby/gems/shared/gems/psych-2.1.0 for inspection.
Results logged to C:/jruby-9.1.2.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.3.0/psych-2.1.0/gem_make.out
Gems updated: psych

The update still tries to build native extensions.

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

No branches or pull requests

2 participants