Link to home
Start Free TrialLog in
Avatar of ads711
ads711Flag for Belgium

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..."
Avatar of wesgarrison
wesgarrison
Flag of United States of America image

Are you on a mac?  I presume so since you're talking about MAMP.

Did you happen to restart your application after you recompiled the gem?

Try:
sudo gem update mysql

Maybe that'll reinstall what you need?
Avatar of ads711

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"
What version of rails are you using?
You should see it when you run "ruby script/server".
ASKER CERTIFIED SOLUTION
Avatar of wesgarrison
wesgarrison
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.