mysql - fail to install mysql2 gem -


i'm trying setup not old (but still few years) of rails project on new mavericks machine. when try bundle, keep getting error (sorry long code):

gem::installer::extensionbuilderror: error: failed build gem native extension. /users/royzinn/.rbenv/versions/1.8.7-p352/bin/ruby extconf.rb --with-mysql-config=/usr/local/cellar/mysql/5.5.20/bin/mysql_config checking rb_thread_blocking_region()... no checking rb_wait_for_single_fd()... no checking mysql.h... no checking mysql/mysql.h... no ----- mysql.h missing.  please check installation of mysql , try again. ----- *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  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=/users/royzinn/.rbenv/versions/1.8.7-p352/bin/ruby     --with-mysql-config   gem files remain installed in /users/royzinn/dailyd/vendor/ruby/1.8/gems/mysql2-0.2.18     inspection. results logged /users/royzinn/dailyd/vendor/ruby/1.8/gems/mysql2-0.2.18/ext/mysql2/gem_make.out 

before had message saying gem built mysql version 5.5.20 , have activated other (more advanced) mysql.

i "cleaned" homebrew, tried reinstall nothing seems work.

any highly appreciated. thanks!

try delete directory :

/users/royzinn/dailyd/vendor/ruby/1.8/gems/mysql2-0.2.18   

if doesn't delete rvm directory , reinstall


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -