我使用的是Redmine 1.0.3,当访问它时,我从Passenger收到以下错误:
错误讯息:
未定义的方法`name' for" actionmailer":String
异常类:
NoMethodError
建议的修补程序(请参阅undefined method `name' for "actionmailer":String)无效:
# gem install rubygems-update -v 1.3.5
Successfully installed rubygems-update-1.3.5
1 gem installed
# update_rubygems --version=1.3.5
Installing RubyGems 1.3.5
/usr/lib/ruby/1.9.1/rubygems.rb:206:in `try_activate': undefined method `find_by_path' for Gem::Specification:Class (NoMethodError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /var/lib/gems/1.9.1/gems/rubygems-update-1.3.5/lib/rubygems/config_file.rb:34:in `<class:ConfigFile>'
from /var/lib/gems/1.9.1/gems/rubygems-update-1.3.5/lib/rubygems/config_file.rb:12:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.9.1/gems/rubygems-update-1.3.5/lib/rubygems/gem_runner.rb:8:in `<top (required)>'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from setup.rb:25:in `<main>'
我的Ruby版本是1.9.3,我的Rails版本是2.3.5。
有谁知道如何解决这个问题?提前谢谢!
答案 0 :(得分:1)
将我的Ruby版本降级为1.8.7解决了这个问题。