0

我在启动 rails 项目时遇到问题。我的环境:


rails -v
2.3.2
ruby -v 
1.8.7 (2012-10-12 patchlevel 371) [i686-darwin11.4.2]
gem -v 
1.8.6

当我尝试启动 rails 时:


$ script/server
/Users/bmalets/.rvm/gems/ruby-1.8.7-p371@global/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
    from /Users/bmalets/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /Users/bmalets/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /Users/bmalets/.rvm/gems/ruby-1.8.7-p371@global/gems/activesupport-2.3.2/lib/active_support.rb:56
    from /Users/bmalets/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /Users/bmalets/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from /Users/bmalets/.rvm/gems/ruby-1.8.7-p371@global/gems/rails-2.3.2/lib/commands/server.rb:1
    from /Users/bmalets/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    from /Users/bmalets/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    from script/server:3

请帮我解决这个问题。

当我尝试安装 gems 时,我有:


$ rake gems:install
(in /Users/bmalets/Documents/ror_projects/myapp)
rake aborted!
undefined method `name' for "actionmailer":String
4

1 回答 1

0

我重新安装了 ruby​​gems,它有帮助。

于 2013-03-27T23:24:41.833 回答