An error is returned when rails is connected to mysql in the gem-windous environment.

Source: Internet
Author: User
Rubyrailsdevkitsqlite3 environment dependencies installed with railsinstaller have been installed now want to try mysqlC: windowssystem32 & gt; railsnewE: rubykk10-dmysqlInstallingmysql2 (0.3.13) Gem: Installer: ExtensionBuildError: ERROR: warning. f: railsRailsInstalle... mysqlgemrailsrailsinstallerruby

Ruby rails devkit sqlite3 on which the environment installed with railsinstaller depends has been installed
Now I want to try mysql
C: \ windows \ system32> rails new E: \ ruby \ kk10-d mysql

Installing mysql2 (0.3.13)
Gem: Installer: ExtensionBuildError: ERROR: Failed to build gem native extension
.

    F:/rails/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb

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
* ** Extconf. rb failed ***
Cocould not create Makefile due to some reason, probably lack
Necessary libraries and/or headers. Check the mkmf. log file for more
Details. You may need configuration options.

In addition:

C: \ windows \ system32> gem install mysql2
Temporarily enhancing PATH to include DevKit...
Building native extensions. This cocould take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.

    F:/rails/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb

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
* ** Extconf. rb failed ***
Cocould not create Makefile due to some reason, probably lack
Necessary libraries and/or headers. Check the mkmf. log file for more
Details. You may need configuration options.

Thank you for your guidance.
I have tried to install the mysql path.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.