gem-windous环境下 rails 连接mysql 报错
用railsinstaller装的环境依赖的ruby rails devkit sqlite3都装过了
现在想试试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 ***
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.
另:
C:\windows\system32>gem install mysql2
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could 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 ***
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.
求大神指导
安装附带mysql路径也试过了不行。
推荐阅读
-
gem-windous环境下 rails 连接mysql 报错
-
linux搭建的LNMP环境下的mysql授权远程连接
-
windows下安装ruby on rails + mysql 运行环境
-
在PHP+Apache+MySQL环境下(windows系统),连接SQLServer数据出现“can not find driver”问题的解决办法
-
MySQL多实例的环境下,服务器端本地连接到指定实例的问题(sock方式连接)
-
linux环境下配置mysql5.6支持IPV6连接的方法
-
Eclipse+CDT环境下使用C语言连接MySQL详细讲解
-
ubunttu环境下mysql报错 ERROR: Failed to open file ‘‘/home/yby/***.sql‘‘, error: 2
-
php-[PHP] wamp环境下。使用PDO连接mysql,能执行查询的sql,不能调用存储过程
-
gem-windous环境下 rails 连接mysql 报错