ruby – 宝石在更新到OS X 10.10优胜美地测试版后不工作

前端之家收集整理的这篇文章主要介绍了ruby – 宝石在更新到OS X 10.10优胜美地测试版后不工作前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
更新到10.10优胜美地之后,宝宝的工作有困难.

运行这个(或任何其他gem安装/卸载):

sudo gem install MysqL2psql

它总是会给我以下错误

/Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `synchronize': ERROR: Failed to build gem native extension. (Gem::Ext::BuildError)

    ERROR: Failed to build gem native extension.

    deadlock; recursive locking

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/MysqL-2.9.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/MysqL-2.9.1/gem_make.out


Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/MysqL-2.9.1 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-14/2.0.0/MysqL-2.9.1/gem_make.out
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `build_extension'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `each'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1436:in `block in build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb:45:in `use_ui'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1434:in `build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:60:in `build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/basic_specification.rb:56:in `contains_requirable_file?'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:925:in `block in find_inactive_by_path'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `each'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find_inactive_by_path'
    from /Library/Ruby/Site/2.0.0/rubygems.rb:185:in `try_activate'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
    from /Library/Ruby/Site/2.0.0/rubygems.rb:601:in `load_yaml'
    from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:328:in `load_file'
    from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:197:in `initialize'
    from /Library/Ruby/Site/2.0.0/rubygems.rb:289:in `new'
    from /Library/Ruby/Site/2.0.0/rubygems.rb:289:in `configuration'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:63:in `run'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/ext_conf_builder.rb:38:in `block in build'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tempfile.rb:324:in `open'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/ext_conf_builder.rb:17:in `build'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:160:in `chdir'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:160:in `block in build_extension'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `synchronize'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:159:in `build_extension'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `each'
    from /Library/Ruby/Site/2.0.0/rubygems/ext/builder.rb:195:in `build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1436:in `block in build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/user_interaction.rb:45:in `use_ui'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:1434:in `build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/stub_specification.rb:60:in `build_extensions'
    from /Library/Ruby/Site/2.0.0/rubygems/basic_specification.rb:56:in `contains_requirable_file?'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:925:in `block in find_inactive_by_path'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `each'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find'
    from /Library/Ruby/Site/2.0.0/rubygems/specification.rb:924:in `find_inactive_by_path'
    from /Library/Ruby/Site/2.0.0/rubygems.rb:185:in `try_activate'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:132:in `rescue in require'
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
    from /Library/Ruby/Site/2.0.0/rubygems.rb:601:in `load_yaml'
    from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:328:in `load_file'
    from /Library/Ruby/Site/2.0.0/rubygems/config_file.rb:197:in `initialize'
    from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:74:in `new'
    from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:74:in `do_configuration'
    from /Library/Ruby/Site/2.0.0/rubygems/gem_runner.rb:39:in `run'
    from /usr/bin/gem:21:in `<main>'

也许有人可以帮忙! Xcode 6 beta安装包括命令行工具.

先谢谢一堆!

解决方法

我有同样的问题,并通过删除我的宝石并重新安装:
sudo rm -rf /Library/Ruby/Gems/*;
sudo gem update --system

(如上所述
here)

原文链接:https://www.f2er.com/ruby/273884.html

猜你在找的Ruby相关文章