gem - ruby 1.8.7 如何安装 libxml-ruby 0.8.3?

 来去匆匆4_362 发布于 2022-10-25 01:39

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没法正常生成。

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有