I’m not a fan of macs, and to add to my depression, Mac OSX have problems in installing the gems mysql and do_mysql. I tried the workaround found here. It didn’t work on the machine I’m using. The error I’m experiencing now is:
Building native extensions. This could take a while…
ERROR: Error installing do_mysql:
ERROR: Failed to build gem native extension./usr/local/bin/ruby extconf.rb –with-mysql-dir=/Applications/MAMP/Library –with-mysql-config=/Applications/MAMP/Library/bin/mysql_config
checking for mysql.h… *** 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=/usr/local/bin/ruby
–with-mysql-config
/usr/local/lib/ruby/1.9.1/mkmf.rb:362:in `try_do’: The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/lib/ruby/1.9.1/mkmf.rb:431:in `try_cpp’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:809:in `block in have_header’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpone’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:270:in `postpone’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for’
from /usr/local/lib/ruby/1.9.1/mkmf.rb:808:in `have_header’
from extconf.rb:55:in `’Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/do_mysql-0.10.0 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/do_mysql-0.10.0/ext/do_mysql_ext/gem_make.out
I don’t know even know what these development tools the error message is talking about. I was able to install all the other gems I needed except for these two. I do hope I’ll come across with a solution for this. Specially when I’m not used to the development environment on Mac Computers.
