rake gems:安装错误无法加载这样的文件

时间:2014-07-25 08:58:49

标签: ruby-on-rails ruby gem rake ruby-on-rails-2

您好我使用红宝石红宝石1.8.7& Rails 2.3.2

我已经为config / environment

添加了必要的gem
  config.gem "rack", :version => '1.0.1', :source => "https://rubygems.org"
  config.gem "tlsmail", :version => '0.0.1', :source => "https://rubygems.org"
  config.gem "tmail", :version => '1.2.3.1', :source => "https://rubygems.org"
  config.gem "rcodetools", :version => '0.8.5.0', :source => "https://rubygems.org"
  config.gem "linecache", :version => '0.43', :source => "https://rubygems.org"
  config.gem "ruby-debug-base", :version => '0.10.3', :source => "https://rubygems.org"
  config.gem "ruby-debug", :version => '0.10.3', :source => "https://rubygems.org"
  config.gem "mongrel", :version => '1.1.5', :source => "https://rubygems.org"
  config.gem "mongrel_cluster", :version => '1.0.5', :source => "https://rubygems.org"
  config.gem "passenger", :version => '2.2.4', :source => "https://rubygems.org"
  config.gem "chronic", :version => '0.3.0', :source => "https://rubygems.org"

第一次运行 rake gems:install 时,所有gem都已成功安装,但是当我添加新gem并运行 rake gems:install 时,它会显示以下错误。

no such file to load -- rcodetools
    /home/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /home/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/rails-2.3.2/lib/rails/gem_dependency.rb:179:in `load'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/rails-2.3.2/lib/initializer.rb:305:in `each'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/rails-2.3.2/lib/initializer.rb:305:in `load_gems'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/rails-2.3.2/lib/initializer.rb:162:in `process'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/rails-2.3.2/lib/initializer.rb:113:in `send'
    /home/.rvm/gems/ruby-1.8.7-p374@my_app/gems/rails-2.3.2/lib/initializer.rb:113:in `run'
    /home/Desktop/my_app/config/environment.rb:9

任何人都可以告诉我错误的原因。

提前致谢

0 个答案:

没有答案