gem - ruby​​ 1.8.7 如何安裝 libxml-ruby 0.8.3?
阿神
阿神 2017-04-21 11:17:11
0
0
666

ruby 版本:1.8.7
OS:Ubuntu12.04

在rails項目下執行安裝gemfile的命令

bundle install --path .bundle

得到下麵結果


Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb extconf.rb:6: stack level too deep (SystemStackError) Gem files will remain installed in /home/username/path/.bundle/ruby/1.9.1/gems/libxml-ruby-0.8.3 for inspection. Results logged to /home/username/path/.bundle/ruby/1.9.1/gems/libxml-ruby-0.8.3/ext/libxml/gem_make.out An error occurred while installing libxml-ruby (0.8.3), and Bundler cannot continue. Make sure that `gem install libxml-ruby -v '0.8.3'` succeeds before bundling.

運行

sudo gem install libxml-ruby -v '0.8.3'

卻提示:


Building native extensions. This could take a while... Successfully installed libxml-ruby-0.8.3 Installing ri documentation for libxml-ruby-0.8.3 No definition for input_callbacks_add_scheme No definition for input_callbacks_remove_scheme No definition for ruby_xml_node2_new_native Enclosing class/module 'cXMLSaxParser' for module Callbacks not known No definition for ruby_xml_html_parser_new_file No definition for ruby_xml_html_parser_new_io No definition for ruby_xml_html_parser_filename_get No definition for ruby_xml_html_parser_filename_set No definition for ruby_xml_html_parser_io_get No definition for ruby_xml_html_parser_io_set No definition for ruby_xml_parser_context_options_get No definition for ruby_xml_parser_context_options_set /usr/local/lib/ruby/1.8/rdoc/rdoc.rb:280: warning: conflicting chdir during another chdir block /usr/local/lib/ruby/1.8/rdoc/rdoc.rb:287: warning: conflicting chdir during another chdir block Done installing documentation for libxml-ruby after 2 seconds 1 gem installed

但Gemfile.lock沒法正常生成。

阿神
阿神

闭关修行中......

全部回覆(0)
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板