brianmario/mysql2 — Issue #220: Missing mysql.h on solaris
Author: anilk914
Created: 2011-11-08 17:12:20+00:00
State: open

Hi,

I am trying to install mysql2 gem with below and

gem install mysql2 -- --with-opt-dir=/opt/mysql/mysql --with-opt-include=/opt/mysql/mysql/include --with-opt-lib=/opt/mysql/mysql/lib

Once I received error I tried to edit extconf.rb file with hard path but not working. Still stuck with the below error.

I have installed package from mysql and mysql.h file exist in
/opt/mysql/mysql/include/mysql.h
/usr/include/mysql/mysql.h (symlink to above)

I really appreciate help on this.
Thanks,
Anil.

checking for rb_thread_blocking_region()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no
-----
mysql.h is missing. please check your installation of mysql and try again.
-----
*** 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
--with-opt-include=${opt-dir}/include
--with-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/export/home/maftool/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
--with-mysql-config
--without-mysql-config