1

我刚刚升级到 Snow leopard,运行了迁移助手,并且花了好几个小时试图让这些 gem 工作,但没有运气。当我尝试启动我的服务器时,我收到以下错误。所有缺少的宝石实际上都在供应商目录中。这适用于另一个人的雪豹,所以它一定是我从豹子迁移的神器或我今天搞砸的其他东西。

我试过 rake gems:build:force。尝试手动删除 .bundles。我还删除了 mac 端口,重新安装并做了:sudo port install libxml2 libxslt。还安装了xcode。

 ruby script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
dlsym(0x103a010a0, Init_bluecloth_ext): symbol not found - /Users/jnylund/Projects/vente/vendor/gems/bluecloth-2.0.5/lib/bluecloth_ext.bundle
/Users/jnylund/Projects/vente/vendor/gems/bluecloth-2.0.5/lib/bluecloth_ext.bundle
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/bluecloth-2.0.5/lib/bluecloth.rb:156
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:208:in `load'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `each'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:164:in `process'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/Users/jnylund/Projects/vente/config/environment.rb:12
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/railties/lib/commands/server.rb:84
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
dlsym(0x1026a0790, Init_nokogiri): symbol not found - /Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
/Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri.rb:13
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:208:in `load'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `each'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:164:in `process'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/Users/jnylund/Projects/vente/config/environment.rb:12
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/railties/lib/commands/server.rb:84
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
dlsym(0x103998840, Init_nokogiri): symbol not found - /Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
/Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri.rb:13
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/sax-machine-0.0.14/lib/sax-machine/sax_document.rb:1
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/sax-machine-0.0.14/lib/sax-machine.rb:5
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/feedzirra-0.0.23/lib/feedzirra.rb:5
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:208:in `load'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `each'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:164:in `process'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/Users/jnylund/Projects/vente/config/environment.rb:12
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/railties/lib/commands/server.rb:84
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
dlsym(0x102690920, Init_bluecloth_ext): symbol not found - /Users/jnylund/Projects/vente/vendor/gems/bluecloth-2.0.5/lib/bluecloth_ext.bundle
/Users/jnylund/Projects/vente/vendor/gems/bluecloth-2.0.5/lib/bluecloth_ext.bundle
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/bluecloth-2.0.5/lib/bluecloth.rb:156
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:208:in `load'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `each'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:169:in `process'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/Users/jnylund/Projects/vente/config/environment.rb:12
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/railties/lib/commands/server.rb:84
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
dlsym(0x1026a7a80, Init_nokogiri): symbol not found - /Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
/Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri.rb:13
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:208:in `load'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `each'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:169:in `process'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/Users/jnylund/Projects/vente/config/environment.rb:12
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/railties/lib/commands/server.rb:84
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
dlsym(0x102ab4c00, Init_nokogiri): symbol not found - /Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
/Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri/nokogiri.bundle
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/nokogiri-1.4.1/lib/nokogiri.rb:13
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/sax-machine-0.0.14/lib/sax-machine/sax_document.rb:1
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/sax-machine-0.0.14/lib/sax-machine.rb:5
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/gems/feedzirra-0.0.23/lib/feedzirra.rb:5
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:208:in `load'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `each'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:307:in `load_gems'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:169:in `process'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/Users/jnylund/Projects/vente/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/Users/jnylund/Projects/vente/config/environment.rb:12
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/Users/jnylund/Projects/vente/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/Users/jnylund/Projects/vente/vendor/rails/railties/lib/commands/server.rb:84
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `require'
script/server:3
Missing these required gems:
  bluecloth  = 2.0.5
  nokogiri  = 1.4.1
  feedzirra  = 0.0.23

You're running:
  ruby 1.8.7.174 at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
  rubygems 1.3.5 at /Users/jnylund/.gem/ruby/1.8, /Library/Ruby/Gems/1.8, /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8

Run `rake gems:install` to install the missing gems.
4

3 回答 3

1

我可以推荐 RVM 吗?

http://rvm.beginrescueend.com/

它是管理 Ruby 安装的一个了不起的工具,并且只是减少了 99.999% 与安装或升级 Ruby 相关的所有麻烦。

它还允许您使用单个命令同时在系统上安装任何版本的 Ruby ,它几乎消除了对 sudoing 的所有需求。我发现它在性能、使用和部署方面非常无缝,因为它得到了创建者的很好的支持。

RVM 的美妙之处在于,它将所有 gem 存储在其自己的目录结构中,用于您安装的每个 Ruby 版本,这意味着您根本不需要担心路径(除了初始设置,但所有这些都记录在安装程序)

于 2010-11-22T04:35:48.773 回答
1

这就是出售你的 gem 的问题:你的本地 gem 通常不能从一台机器移植到另一台机器,或者在升级你的操作系统之后。您出售的 gem 肯定无法在 Linux 或 Windows 上运行。

您需要做的是清除您的 gem 并重新编译 - 相当于gem pristine all. 清除您的vendor/gems并重新供应可能会解决问题。但我强烈建议切换到Bundler来管理您的 gem 依赖项。它在 2.3.5 上运行良好。

如果您在通过正常方式安装这些 gem 时仍然遇到问题(例如 do gem install nokogiri,然后 try irb -rrubygems -rnokogiri),那么您肯定遇到了更大的问题。很难说那会是什么。您安装 XCode 中的任何内容都存在硬件问题。

于 2010-11-22T05:59:46.963 回答
1

花了 2 天的时间反复试验,但我似乎有一些工作,我不确定是什么解决了这个问题,但这是我最好的猜测:

env ARCHFLAGS="-arch x86_64 rake gems:build:force

我认为这就是最终解决它的原因。

我还使用以下方法清理了所有系统 gem:

env ARCHFLAGS="-arch x86_64 gem pristine --all

So its possible one of these gems depends on a gem in my system and that helped also.

Joel

于 2010-11-23T16:57:38.217 回答