我想讓mysql gem工作......而它只是不想。每次我做一個耙分貝:遷移,我得到MySQL Gem失敗:Snow Leopard上的MysqlCompat :: MysqlRes
uninitialized constant MysqlCompat::MysqlRes
我mysql安裝從該磁盤映像:mysql-5.5.9-osx10.6-x86_64.dmg
我已經運行的創業板安裝與臭名昭著 ARCHFLAGS設置:
sudo env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
而且我使用的紅寶石版本是雪豹默認:
[~/sites/testdb]$ file `which mysql`
/usr/local/mysql/bin/mysql: Mach-O 64-bit executable x86_64
[~/sites/testdb]$ file `which ruby`
/usr/bin/ruby: Mach-O universal binary with 3 architectures
/usr/bin/ruby (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/ruby (for architecture i386): Mach-O executable i386
/usr/bin/ruby (for architecture ppc7400): Mach-O executable ppc
我的database.yml很簡單:
development:
adapter: mysql
host: 127.0.0.1
database: testdb
username: root
password:
任何幫助,將不勝感激。