2011-07-20 9 views
1

以前私はRails 2.3.2のインストールにこのような問題はありませんでした。誰かに何か提案がありますが、どうすればそれを修正できますか? http://0.0.0.0:3000Rails 2.3.2とversion_requirementsのインストールに失敗しました

/home/thesis/.rvm/gems/ruby-1.8.7-p334に始まる

`$ Rubyスクリプト/サーバー

=>ブートWEBrickに => Railsの2.3.2アプリケーション@ MY_APP /宝石/レール-2.3.2/libに/レール/ gem_dependency.rb:99: '要件' で:#(NameError)

にコードの下に置く
from /home/thesis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems.rb:254:in 'activate' 
from /home/thesis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems.rb:1204:in 'gem' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/rails-2.3.2/lib/rails/gem_dependency.rb:57:in 'add_load_paths' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/rails-2.3.2/lib/initializer.rb:299:in 'add_gem_load_paths' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/rails-2.3.2/lib/initializer.rb:299:in 'each' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/rails-2.3.2/lib/initializer.rb:299:in 'add_gem_load_paths' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/rails-2.3.2/lib/initializer.rb:132:in 'process' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/rails-2.3.2/lib/initializer.rb:113:in 'send' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/rails-2.3.2/lib/initializer.rb:113:in 'run' 
from /home/thesis/development/tt/my_app/config/environment.rb:15 
from /home/thesis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in 'gem_original_require' 
from /home/thesis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in 'require' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in 'require' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in 'new_constants_in' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in 'require' 
from /home/thesis/.rvm/gems/[email protected]_app/gems/rails-2.3.2/lib/commands/server.rb:84 
from /home/thesis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in 'gem_original_require' 
from /home/thesis/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in 'require' 
from script/server:3` 

答えて

3

ため、未定義のローカル変数やメソッド 'version_requirements'あなたの環境.rb。それはあなたの問題を解決するかもしれない

if Gem::VERSION >= "1.3.6" 
    module Rails 
     class GemDependency 
     def requirement 
      r = super 
      (r == Gem::Requirement.default) ? nil : r 
     end 
     end 
    end 
    end 
関連する問題