【发布时间】:2009-11-03 14:16:13
【问题描述】:
我的最终目标是在本地开发 Radiant CMS 安装。因此,需要 rails 和 db 才能发挥出色。以前对 mysql 的挫败感让我尝试了 mamp。我已经安装了 MAMP。这是工作。不过,我对其他途径持开放态度。
尝试安装 mysql gem 但没有得到爱。
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
我发现了很多关于在升级到雪豹后安装 gems 的建议,但所有好的答案似乎都指向人们安装 64 位版本的 mysql。我有一个 32 位处理器。
我已经安装了 xcode。
如何安装这个 gem?
【问题讨论】:
标签: mysql ruby-on-rails