help with mysql error

I got the following error.

/Users/bryan/.gem/ruby/1.8/gems/activesupport-2.2.2/lib/active_support/
dependencies.rb:442:in `load_missing_constant': uninitialized constant
MysqlCompat::MysqlRes (NameError)

I tried to do the following :

"sudo env ARCHFLAGS="-arch x86_64" gem install mysql"

and

"sudo gem install mysql"

but it doesn't work. any suggestion as to how to solve this?

Quoting twittwit <ytbryan@gmail.com>:

I got the following error.

/Users/bryan/.gem/ruby/1.8/gems/activesupport-2.2.2/lib/active_support/
dependencies.rb:442:in `load_missing_constant': uninitialized constant
MysqlCompat::MysqlRes (NameError)

I tried to do the following :

"sudo env ARCHFLAGS="-arch x86_64" gem install mysql"

and

"sudo gem install mysql"

but it doesn't work. any suggestion as to how to solve this?

"It doesn't work" is not very informative. How doesn't it work, same error
message as before, or the MySQL gem doesn't install (please give error message
if so). What platform are you on (Linux, Windows, Mac OSX). More detail is
needed to help you.

Jeffrey

Hi there

I know it's something silly but have you tried to include a require
sentence for MysqlCompat::MysqlRes (I lose a lot of time with a
'NameError' problem like this and it was a missing require

Knd Rgds

  Miquel