ruby - JRuby: Nokogiri 1.6 Failing To Install & Bundler Attempting To Install Already Met Dependency -
i getting error on jruby (linux) when installing "trinidad_diagnostics_extension" gem (though question not trinidad). chain of dependencies generating error:
- "trinidad_diagnostics_extension" depends on "jruby-lint >= 0.3.0"
- "jruby-lint >= 0.3.0" in turn depends on "nokogiri >= 1.5.0.beta.4"
- before attempting install "trinidad_diagnostics_extension", relevant part of gem list looks this:
$gem list nokogiri (1.5.9 java) jruby-lint (0.4.1)
as can see, needed dependencies seem met. nonetheless, after adding gem 'trinidad_diagnostics_extension'
gemfile , running jruby -s bundle install
, bundler attempts install nokogiri (1.6.0.rc1)
, , during installation fails following error:
gem::installer::extensionbuilderror: error: failed build gem native extension. ... bunch of omitted output here nokogiri.c:42:18: fatal error: util.h: no such file or directory compilation terminated. make: *** [nokogiri.o] error 1 gem files remain installed in /home/jg/.rvm/gems/jruby-1.7.3/gems/nokogiri-1.6.0.rc1 inspection. results logged /home/jg/.rvm/gems/jruby-1.7.3/gems/nokogiri-1.6.0.rc1/ext/nokogiri/gem_make.out
- why bundler trying install nokogiri when dependency met?
- how can fix this? installing nokogiri 1.6 or making trinidad extension aware 1.6 not need installed both fine solutions.
in case it's relevant have jruby_opts=-xcext.enabled=true
update
i able work first installing gem outside of bundler:
jruby -s gem install trinidad_diagnostics_extension
and bundle command worked fine, since installed. got working still confused why had install outside of bundler , why matter, , insight if has it.
1.6.0.pre1 not exist java platform, uninteresting reasons. said, should prereleases if ask them. so, else going on. can share entire gemfile, please?
Comments
Post a Comment