2013-07-29 75 views
0

安装mysql2在使用MySQL作为数据库中创建Rails应用程序,我收到以下错误失败而创建的轨道新的应用程序

... 
... 
Installing mysql2(0.3.13) 
Gem:Installer::ExtensionBuilderError: ERROR: Failed to build gem native extension 
C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb 
checking for rb_thread_blocking_region 
checking for rb_wait_for_single_fd<>... yes 
checking for rb_has_dup<>... yes 
checking for rb_intern3<>... yes 
***extconf.rb failed *** 
Could not create Makefile due to some reasons, probably lack of necessary libraries and/or headers. Check the mkmf.log for more details. You may need configuration options 

不过,如果我使用默认的SQLite数据库,是没有问题的

My OS & MySQL information 
OS:Winodows 8 64bit 
MySQL: 5.6(64 bit) 

回答

0

不幸的是mysql2 gem有问题,你现在必须安装mysql gem,在你的config/database.yml和gemfile中修改mysql2/mysql后执行bundle安装,希望能够清楚。

相关问题