2014-01-24 127 views
1

我已經安裝了以下版本:寶石mysql2沒有安裝Ruby on Rails的

  • 紅寶石1.9.3p484(2013年11月22日)[I386-的mingw32]
  • 軌4.0.2
  • 的devkit -tdm-32-4.5.2-20111229-1559-SFX
  • 的rubygems-2.1.11
  • MySQL服務器5.6
  • MySQL的連接器-C-noinstall-6.0.2-Win32的VS2005

我已經運行以下三個命令:

$ gem i mysql2 

$ gem install mysql2 -- '--with-mysql-lib="C:\Program Files\MySQL\MySQL Server 5.6\lib" --with-mysql-include="C:\Program Files\MySQL\MySQL Server 5.6\include" --with-mysql-dir="C:\Program Files\MySQL\MySQL Server 5.6"' 

$ gem install mysql2 --platform=ruby -- '--with-mysql-lib="C:\mysql-connector-c-noinstall-6.0.2-win32-vs2005\lib" --with-mysql-include="C:\mysql-connector-c-noinstall-6.0.2-win32-vs2005\include" --with-mysql-dir="C:\mysql-connector-c-noinstall-6.0.2-win32-vs2005"' 

上述三個CMDS有以下錯誤:

* 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. 
+0

show'mkmf.log' –

回答