0

I've been trying to install Webistrano. I have installed all the dependencies required for it, including Capistrano, as described on the github wiki: https://github.com/peritor/webistrano/wiki/Installation. I have googled these error messages and have not found any helpful info.

When running RAILS_ENV=production rake db:migrate I get the following error messages:

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>'

No 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)

Thank you.

Onema
  • 7,331
  • 12
  • 66
  • 102

1 Answers1

0

The MysqlRes issue has been asked and solved many times here. Short answer is you need to reinstall the gem with custom settings.

Community
  • 1
  • 1
Jeff Paquette
  • 7,089
  • 2
  • 31
  • 40
  • I wish I could say this is my problem, but I have already try to un-install and re-install mysql gem with the custom settings with little success (this is for 2.8.1). when trying to install 2.7 I get: make: *** [mysql.o] Error 1 – Onema Aug 02 '11 at 21:13