Ho usato Warbler per creare un file Jar dalla mia sorgente Ruby. Ho anche installato RVM. Il comportamento del vaso varia a seconda che Rubino versione RVM sta usando: se io rvm use jruby
poi il vaso funziona normalmente, ma se io rvm use 2.2
poi eseguire le stampe vaso questi messaggi di avviso alla console:Come smettere di RVM interferendo con JRuby
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
e se io rvm use ruby-1.9.3-p484
poi eseguire il vaso non riesce in realtà:
Ignoring unf_ext-0.0.7.1 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.1
Ignoring nokogiri-1.6.2.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.2.1
Ignoring nokogiri-1.6.6.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.6.2
Ignoring nokogiri-1.6.6.2 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.6.2
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built. Try: gem pristine gem-wrappers --version 1.2.7
Ignoring nokogiri-1.6.2.1 because its extensions are not built. Try: gem pristine nokogiri --version 1.6.2.1
Ignoring unf_ext-0.0.7.1 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.1
NameError: uninitialized constant Nokogiri::XERCES_VERSION
const_missing at org/jruby/RubyModule.java:2733
to_hash at /vagrant/myproject!/gems/nokogiri-1.6.6.2-java/lib/nokogiri/version.rb:73
...
Se eseguo il barattolo sul computer senza rvm installato, funziona benissimo.
Che cosa sta causando questo e come posso impedire a RVM di interferire con il mio contenitore?
forse dovresti provare rbenv https://github.com/sstephenson/rbenv – nisevi