首頁 > 資料庫 > mysql教程 > gem-windous环境下 rails 连接mysql 报错

gem-windous环境下 rails 连接mysql 报错

WBOY
發布: 2016-06-06 09:45:29
原創
1062 人瀏覽過

mysqlgemrailsrailsinstallerruby

用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
.

<code>    F:/rails/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb</code>
登入後複製
登入後複製

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.

<code>    F:/rails/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb</code>
登入後複製
登入後複製

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路径也试过了不行。

來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板