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

Psych gem installs, but refuses to use gem's jar #2909

Closed
headius opened this issue May 5, 2015 · 2 comments
Closed

Psych gem installs, but refuses to use gem's jar #2909

headius opened this issue May 5, 2015 · 2 comments

Comments

@headius
Copy link
Member

headius commented May 5, 2015

Seems like there's either something wrong with the jar, something wrong with the gem, or something wrong with how we load jars in 9k, but the psych jar seems to only be loadable from our stdlib.

[] ~/projects/psych $ gem install pkg/psych-2.0.13-java.gem 
  jar dependencies for psych-2.0.13-java.gemspec . . .
      org.yaml:snakeyaml:1.14
Successfully installed psych-2.0.13-java
1 gem installed

[] ~/projects/psych $ cd ../jruby

[] ~/projects/jruby $ mv lib/ruby/stdlib/psych.jar .

[] ~/projects/jruby $ cd -
/Users/headius/projects/psych

[] ~/projects/psych $ ruby -v -e 'require "yaml"; p YAML.load("nokogiri: 鋸".force_encoding("ASCII-8BIT"))'
jruby 9.0.0.0-SNAPSHOT (2.2.2) 2015-05-05 f196dbb Java HotSpot(TM) 64-Bit Server VM 25.40-b23 on 1.8.0_40-ea-b19 +jit [darwin-x86_64]
/Users/headius/projects/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `require':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
LoadError: no such file to load -- psych
  require at org/jruby/RubyKernel.java:966
  require at /Users/headius/projects/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:121
    <top> at /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/psych-2.0.13-java/lib/psych_jars.rb:2
  require at org/jruby/RubyKernel.java:966
   (root) at /Users/headius/projects/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
    <top> at /Users/headius/projects/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:69
  require at org/jruby/RubyKernel.java:966
   (root) at /Users/headius/projects/jruby/lib/ruby/gems/shared/gems/psych-2.0.13-java/lib/psych.rb:3
    <top> at /Users/headius/projects/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
  require at org/jruby/RubyKernel.java:966
  require at /Users/headius/projects/jruby/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:128
    <top> at -e:1

@mkristian Can you investigate? I'm not sure why this is happening :-(

Psych has merged everything and the "jruby" branch should be buildable with rake package (need hoe, minitest =~ 4, and rake-compiler installed).

cc @tenderlove

@headius
Copy link
Member Author

headius commented May 5, 2015

Hold up...looks like my local gem build did not include the jar, so I may be missing some @tenderlove fixes.

@headius
Copy link
Member Author

headius commented May 5, 2015

Sorry, bogus issue. More recent changes to psych build seem to have caused the jar to be missing; if I install it there manually we load fine.

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

1 participant