我的最终目标是Radiant CMS安装的本地开发。所以,需要导轨和数据库才能发挥出色。以前使用mysql的挫败使我尝试了mamp。我已经安装了MAMP。这是工作。不过,我对其他途径持开放态度。在雪豹上安装MySQL gem install失败。我的电脑是32位(mac mini core duo)
试图安装MySQL的宝石,但没有爱。
john-breedloves-mac-mini-2:~ john_breedlove$ sudo gem install mysqlPassword:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
<Omitted>
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
我发现了很多关于安装宝石建议升级到雪豹后,但所有的好答案似乎指向人们越来越mysql安装64位版本。我有一个32位处理器。
我安装了xcode。
我该如何获得这颗宝石?
感谢。我确实安装了mysql(有点)。我安装了MAMP,因此我的mysql位于 /Applications/MAMP/Library/bin – 2009-11-03 14:31:57
我打算将MAMP排除在外,并使用hivelogic中的说明安装mysql。 – 2009-11-03 14:42:31
这里有一个教程,其中有适合MAMP和MySQL gem的选项:http://boonedocks.net/mike/archives/175-MAMP-and-the-Ruby-MySQL-Gem.html – 2009-11-03 15:08:24