ads711
asked on
Status: 500 Internal Server Error uninitialized constant MysqlCompat::MysqlRes
I have this error:
Status: 500 Internal Server Error
uninitialized constant MysqlCompat::MysqlRes
Already followed this tutorial: http://boonedocks.net/mike/archives/175-MAMP-and-the-Ruby-MySQL-Gem.html
But still the same problem.
At the RoR server localhost:3000 page i get the RoR-message "we're sorry..."
Status: 500 Internal Server Error
uninitialized constant MysqlCompat::MysqlRes
Already followed this tutorial: http://boonedocks.net/mike/archives/175-MAMP-and-the-Ruby-MySQL-Gem.html
But still the same problem.
At the RoR server localhost:3000 page i get the RoR-message "we're sorry..."
ASKER
yes, i'm on mac.
I've restarted the compiled gem.
With "sudo gem update mysql" i get:
"Updating installed gems
Nothing to update"
I've restarted the compiled gem.
With "sudo gem update mysql" i get:
"Updating installed gems
Nothing to update"
What version of rails are you using?
You should see it when you run "ruby script/server".
You should see it when you run "ruby script/server".
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
One more link to someone explaining this issue:
http://techliberty.blogspot.com/2009/12/dealing-with-rake-aborted-uninitialized.html
You'll probably need to specify the path to your MAMP's mysql installation, wherever you put it.
http://techliberty.blogspot.com/2009/12/dealing-with-rake-aborted-uninitialized.html
You'll probably need to specify the path to your MAMP's mysql installation, wherever you put it.
Did you happen to restart your application after you recompiled the gem?
Try:
sudo gem update mysql
Maybe that'll reinstall what you need?