1

Snow Leopard にアップグレードしたばかりで、移行アシスタントを実行し、これらの gem を機能させるために何時間も費やしましたが、うまくいきませんでした。サーバーを起動しようとすると、以下のエラーが発生します。不足しているすべての gem は、実際には vendor dir にあります。これは別の人のユキヒョウでも機能するので、ヒョウから移行した私の成果物か、今日めちゃくちゃにした何かに違いありません。

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

2日間の試行錯誤が必要でしたが、問題が解決したかどうかは正確にはわかりませんが、問題は解決したようです。

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

これが最終的に修正されたものだと思います。

また、以下を使用してすべてのシステムgemをクリーンアップしました。

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

したがって、これらの宝石の可能性のあるものは、私のシステムの宝石に依存し、それも役立ちました。

ジョエル

于 2010-11-23T16:57:38.217 に答える
1

これは、gemのベンダー化に関する問題です。ネイティブgemは、多くの場合、あるマシンから別のマシンに、またはオペレーティングシステムをアップグレードした後に移植できなくなります。ベンダーの宝石は確かにLinuxやWindowsでは動作しません。

あなたがする必要があるのはあなたの宝石を片付けて再コンパイルすることです-と同等ですgem pristine all。クリアしてvendor/gems再ベンダーすると、問題が解決する場合があります。ただし、gemの依存関係を管理するには、 Bundlerに切り替えることを強くお勧めします。2.3.5でうまく機能します。

通常の方法でインストールしたときにこれらのgemの使用にまだ問題がある場合は(たとえばgem install nokogiri、実行してから試してくださいirb -rrubygems -rnokogiri)、間違いなく大きな問題が発生します。それが何であるかを言うのは難しい。XCodeのインストールからのすべては、ハードウェアの問題にバグがあります。

于 2010-11-22T05:59:46.963 に答える
1

RVM を推奨できますか?

http://rvm.beginrescueend.com/

Ruby のインストールを管理するための素晴らしいツールであり、Ruby のインストールまたはアップグレードに関連するすべての手間を 99.999% 削減します。

また、1 つのコマンドで任意のバージョンの Ruby をシステムに同時にインストールすることもでき、sudo の必要性がほとんどなくなります。作成者によって非常によくサポートされているため、パフォーマンス、使用法、展開の点で非常にシームレスであることがわかりました.

RVM の優れた点は、インストールした Ruby のバージョンごとに独自のディレクトリ構造内にすべての gem を格納できることです。つまり、パスについてまったく心配する必要はありません (初期設定以外では、インストーラー)

于 2010-11-22T04:35:48.773 に答える