>> Pishty Ags wrote:
>>> Evan Green wrote:
>>>> This didn't seem to fix the error for me.  I still get 'uninitialized 
>>>> constant MysqlCompat::MysqlRes'
>>>> 
>>>> 
>>>> Kyle Fox wrote:
>>>>> To fix this, specify ARCHFLAGS when you install the 'mysql' gem:
>>>>> 
>>>>> sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-
>>>>> config=/usr/local/mysql/bin/mysql_config
>>>>> 
>>>>> On Aug 27, 12:07�pm, Caleb Cullen <[email protected]>
>>>> 
>>>> 
>>>> cheers,
>>> 
>>> on my Centos Machine, i had to install mysql-devel.x86_64 first, then i 
>>> ran the command:
>>> 
>>> env ARCHFLAGS="-arch x86_64" gem install mysql -- 
>>> --with-mysql-config=/usr/lib64/mysql/mysql_config
>>> 
>>> which did the trick.
>>> 
>>> thanks  Kyle

I use Centos , but it's i386 . So I installd mysql-devel,and use the
command:
env ARCHFLAGS="-arch i386" gem install mysql --
--with-mysql-config=/usr/lib/msyql/mysql_config",
and it did the work , Aha!
-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to