[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Status: 500 Internal Server Error   uninitialized constant MysqlCompat::MysqlRes

Posted on 2009-12-16
5
Medium Priority
?
760 Views
Last Modified: 2013-11-13
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..."
0
Comment
Question by:ads711
  • 4
5 Comments
 
LVL 14

Expert Comment

by:wesgarrison
ID: 26068898
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?
0
 

Author Comment

by:ads711
ID: 26069251
yes, i'm on mac.
I've restarted the compiled gem.

With "sudo gem update mysql" i get:
"Updating installed gems
Nothing to update"
0
 
LVL 14

Expert Comment

by:wesgarrison
ID: 26072871
What version of rails are you using?
You should see it when you run "ruby script/server".
0
 
LVL 14

Accepted Solution

by:
wesgarrison earned 2000 total points
ID: 26072906
Hey, are you on Snow Leopard?  If so, you're probably having an issue with the 32 vs 64 bit versions of the gems.

Here's a good thread for people with that issue:
http://www.ruby-forum.com/topic/192550

You probably need to uninstall the mysql gem, then reinstall it with some additional flags.
0
 
LVL 14

Expert Comment

by:wesgarrison
ID: 26072927
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.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month19 days, 10 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question