2011-01-27 6 views
1

私は最近Bundlerを使用するようにアプリケーションを更新しましたが、いくつか問題があります。私はactivesupport 2.3+に依存する宝石を使用しており、Bundlerと連携することはできません。アプリケーションを読み込もうとしているときに旅客がクラッシュします。 activesupportをロードしようとしたときにエラーMissingSourceFileが発生します。誰もこの問題を解決する方法や私が間違っているかもしれないことを知っていますか? activesupport 3.0+では起こりませんが、使用している宝石は2.xに依存しています。MissingSourceFile 'active_support/inflector/inflections'が必要です

no such file to load -- active_support/inflector/inflections (MissingSourceFile) 

0 /opt/ruby/1.8.7-ee-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.3.10/lib/active_support/dependencies.rb 182 in `require' 
1 /opt/ruby/1.8.7-ee-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.3.10/lib/active_support/dependencies.rb 182 in `require' 
2 /opt/ruby/1.8.7-ee-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.3.10/lib/active_support/dependencies.rb 547 in `new_constants_in' 
3 /opt/ruby/1.8.7-ee-2010.02/lib/ruby/gems/1.8/gems/activesupport-2.3.10/lib/active_support/dependencies.rb 182 in `require' 
4 /opt/ruby/1.8.7-ee-2010.02/lib/ruby/gems/1.8/gems/roxml-3.1.6/lib/roxml.rb 4 
. 
. 
. 
9 config.ru 8 in `require' 

答えて

0

これは、ActiveSupport 3スタイルのような変形を必要とします。 the remote_table gemが何をするかだ

require 'active_support' 
require 'active_support/version' 
if ActiveSupport::VERSION::MAJOR == 3 
    require 'active_support/inflector/inflections' 
end 

:あなたが見ることができるように、

activesupport-2.3.9 $ find . -name "inflections.rb" 
./lib/active_support/core_ext/integer/inflections.rb 
./lib/active_support/core_ext/string/inflections.rb 
./lib/active_support/inflections.rb 

可能な場合は、問題のある宝石のような何かを行う必要があります。

+0

を、私は、ファイルのリストを表示するには何を意味するのかは、active_support /クタ/抑揚もactivesupportの2.3には存在しないということです。 –

0

roxml gemを使用している場合は、3.1.3バージョンに切り替えます。

0

私はsudoで動作していて、うまくいきます!

フォルダのパーミッションを確認してくださいが的環境:

ENV['X_DEBIAN_SITEID'] ||= 'default' 
ENV['RAILS_ETC'] ||= "/etc/redmine/#{ENV['X_DEBIAN_SITEID']}" 
ENV['RAILS_LOG'] ||= "/var/log/redmine/#{ENV['X_DEBIAN_SITEID']}" 
ENV['RAILS_VAR'] ||= "/var/lib/redmine/#{ENV['X_DEBIAN_SITEID']}" 
ENV['RAILS_CACHE'] ||= "/var/cache/redmine/#{ENV['X_DEBIAN_SITEID']}" 
ENV['SCHEMA'] ||= "#{ENV['RAILS_CACHE']}/schema.db"