After all attempts. I simply uninstall mysql 5.5.9 (64 bits) and all
Then install Mysql 5.1.55 (64 bits) and
“sudo env ARCHFLAGS=”-arch x86_64" gem install mysql – --with-mysql-
and it works on MAC…
Hope it helps.
Matthew Werner wrote in post #982105:
This has been the most thorough discussion of the topic I’ve found. I’ve
spent far too much time trying to get this stupid gem to work. I’m going
to post the information i’ve got and I’m praying someone out there will
be able to help me.
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
mysql Ver 14.14 Distrib 5.5.9, for osx10.6 (i386) using readline 5.1
sudo gem uninstall mysql
Successfully uninstalled mysql-2.8.1
Here is where I’ve seen so so (SO) many different recommendations on
what to do. I’ve tried damn near everything, both sudo and not,
specifying my arch flags and not. I’ll just go with the most thorough:
export ARCHFLAGS="-arch i386" ; sudo gem install --no-rdoc --no-ri mysql –
Building native extensions. This could take a while…
Successfully installed mysql-2.8.1
1 gem installed
rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
=> Environment: Development
** Execute db:migrate
uninitialized constant MysqlCompat::MysqlRes
I’m lost on what else it could be. I feel like I’ve tried every
combination. I’ve tried reinstalling ruby, 64bit of mysql, please help.
I’m out of ideas.