我想我的雪Leopord系统的MacBook Pro 13" 上安装do_mysql,但我不断收到此错误:无法安装do_mysql gem?
n216-160:~ myself$ sudo gem1.9 install do_mysql
Password:
Building native extensions. This could take a while...
ERROR: Error installing do_mysql:
ERROR: Failed to build gem native extension.
/opt/local/bin/ruby1.9 extconf.rb
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:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/local/bin/ruby1.9
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
Gem files will remain installed in /opt/local/lib/ruby1.9/gems/1.9.1/gems/do_mysql-0.10.0 for inspection.
Results logged to /opt/local/lib/ruby1.9/gems/1.9.1/gems/do_mysql-0.10.0/ext/do_mysql_ext/gem_make.out
n216-160:~ myself$
我不知道为什么我还重新安装我的MySQL的verison与MySQL。 5.4.3测试版,64位的其他建议,但没有骰子。没有人有任何的想法有什么不好?
RPM相当于:'须藤荫安装mysql-devel' – TheLQ 2011-01-21 21:25:31
这个工作对我来说,同样的问题OP。 – 2011-07-24 04:01:39
或'brew install mysql' http://stackoverflow.com/questions/3608287/installing-mysql2-gem-for-rails-3 – 2012-06-01 18:28:36