报错信息:windowsxp系统,ruby2.0Gem::Installer::ExtensionBuildError:ERROR:FailedtobuildgemnativeextensioC:/Ruby200/bin/ruby.exeextconf.rbcheckingforruby/thread.h...yesche...
报错信息:windows xp系统,ruby2.0
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extensio
C:/Ruby200/bin/ruby.exe extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
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:
-
Gem files will remain installed in C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0
3.16 for inspection.
Results logged to C:/Ruby200/lib/ruby/gems/2.0.0/gems/mysql2-0.3.16/ext/mysql2/
em_make.out
An error occurred while installing mysql2 (0.3.16), and Bundler cannot continue
Make sure that `gem install mysql2 -v '0.3.16'` succeeds before bundling.
展开