Skip to content
This repository has been archived by the owner on Apr 17, 2018. It is now read-only.

dm-mysql-adapter is not getting installed in Windows #5

Open
jeydurai opened this issue Dec 23, 2016 · 0 comments
Open

dm-mysql-adapter is not getting installed in Windows #5

jeydurai opened this issue Dec 23, 2016 · 0 comments

Comments

@jeydurai
Copy link

gem install dm-mysql-adapter
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing dm-mysql-adapter:
ERROR: Failed to build gem native extension.

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/do_mysql-0.10.17/ext/do_mysql

C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20161223-7120-yyjae.rb extconf.rb
checking for my_global.h... no
checking for mysql.h... no
checking for main() in -llibmysql... no
checking for mysql_query() in mysql.h... no
checking for mysql_ssl_set() in mysql.h... no
checking for localtime_r()... yes
checking for gmtime_r()... yes
checking for mysql.h... no
checking for MYSQL_TYPE_STRING in mysql.h... no
checking for MYSQL_TYPE_BIT in mysql.h... no
checking for MYSQL_TYPE_NEWDECIMAL in mysql.h... no
checking for mysql_query() in mysql.h... no
checking for mysql_ssl_set() in mysql.h... no
checking for mysql_sqlstate() in mysql.h... no
checking for mysql_get_ssl_cipher() in mysql.h... no
checking for mysql_set_character_set() in mysql.h... no
checking for mysql_get_server_version() in mysql.h... no
checking for mysql_real_escape_string_quote() in mysql.h... no
checking for MYSQL_FIELD.charsetnr in mysql.h... no
checking for rb_thread_fd_select()... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/do_mysql-0.10.17/mkmf.log

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/do_mysql-0.10.17/ext/do_mysql
make "DESTDIR=" clean

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/do_mysql-0.10.17/ext/do_mysql
make "DESTDIR="
generating do_mysql-x64-mingw32.def
compiling do_common.c
compiling do_mysql.c
do_mysql.c:8:19: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [do_mysql.o] Error 1

make failed, exit code 2

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/do_mysql-0.10.17 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/do_mysql-0.10.17/gem_make.out

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant