Problem installing on Lion Server: undefined method `init' for Mysql:Class
Added by har monk over 12 years ago
Hello
I spent all day trying to install redmine on the Mac Lion Server and tried to follow the instructions http://www.redmine.org/projects/redmine/wiki/RedmineInstallOSXLionServer.
However, I'm stuck when I try to run
sudo RAILS_ENV=production rake db:migrate
which throws up the following error:
rake aborted!
undefined method `init' for Mysql:Class
I tried to run RAILS_ENV=production script/about but get the following error:
/Library/Ruby/Gems/1.8/gems/activerecord-3.2.6/lib/active_record/connection_adapters/mysql_adapter.rb:32:in `mysql_connection': undefined method `init' for Mysql:Class (NoMethodError)
and when I open the site, I get "Ruby (Rack) application could not be started" Error message:
undefined method `init' for Mysql:Class
Exception class:
NoMethodError
Application root:
/Library/WebServer/Sites/redmine
By the looks of it, I'm running Ruby 1.8.7, Rails 3.2.6, and the adapter in database.yml is set to mysql, not mysql2.
Any help would be very much appreciated - would love to get Redmine running on this server.
Many thanks
Replies (2)
RE: Problem installing on Lion Server: undefined method `init' for Mysql:Class - Added by José Roberto García Chico over 11 years ago
Hi Har Monk,
I am also trying to install redmine-2.3.1 in my Mac, using macports, and fails in the same place. Did you solve the issue already?
Best regards,