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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Quoting twittwit <ytbryan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 On Mon, 29 Mar 2010 09:26:45 -0500 Jeffrey L. Taylor wrote:> Quoting twittwit <ytbryan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > 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 > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.