0
我一直在試圖安裝Webistrano。我已經安裝了所需的所有依賴項,包括Capistrano,如github wiki上所述:https://github.com/peritor/webistrano/wiki/Installation。我搜索了這些錯誤消息,並沒有找到任何有用的信息。安裝Webistrano RAILS_ENV =生產耙db:在Mac OS上遷移失敗10.6.8
當運行RAILS_ENV =生產耙分貝:遷移我收到以下錯誤信息:
SUDO
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>'
沒有SUDO
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)
謝謝。
我希望我可以說這是我的問題,但我已經嘗試卸載並重新安裝與自定義設置的MySQL gem很少成功(這是爲2.8.1)。當試圖安裝2.7我得到:make:*** [mysql.o]錯誤1 – Onema