我一直在尝试安装 Webistrano。我已经安装了它所需的所有依赖项,包括 Capistrano,如 github wiki 中所述:https ://github.com/peritor/webistrano/wiki/Installation 。我已经用谷歌搜索了这些错误消息,但没有找到任何有用的信息。
运行 RAILS_ENV=production rake db:migrate 时,我收到以下错误消息:
须藤
webistrano username$ sudo RAILS_ENV=production rake db:migrate
/Users/username/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:900:in `report_activate_error': Could not find RubyGem rake (>= 0) (Gem::LoadError)
from /Users/username/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:248:in `activate'
from /Users/username/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:1276:in `gem'
from /Users/u sername/.rvm/gems/ruby-1.9.2-p180/bin/rake:18:in `<main>'
没有须藤
webistrano username$ RAILS_ENV=production rake db:migrate
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
rake aborted!
uninitialized constant MysqlCompat::MysqlRes
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
谢谢你。