宝石mysql2未安装在栏杆上的红宝石上



我已经安装了以下版本:

  • Ruby 1.9.3p484(2013-11-22)[I386-MINGW32]
  • Rails 4.0.2
  • devkit-tdm-32-4.5.2-20111229-1559-SFX
  • RubyGems-2.1.11
  • MySQL Server 5.6
  • mysql-connector-c-noinstall-6.0.2-win32-vs2005

我已经按照三个命令运行:

$ gem i mysql2
$ gem install mysql2 -- '--with-mysql-lib="C:Program FilesMySQLMySQL Server 5.6lib" --with-mysql-include="C:Program FilesMySQLMySQL Server 5.6include" --with-mysql-dir="C:Program FilesMySQLMySQL Server 5.6"'
$ gem install mysql2 --platform=ruby -- '--with-mysql-lib="C:mysql-connector-c-noinstall-6.0.2-win32-vs2005lib" --with-mysql-include="C:mysql-connector-c-noinstall-6.0.2-win32-vs2005include" --with-mysql-dir="C:mysql-connector-c-noinstall-6.0.2-win32-vs2005"'

以上三个CMD具有以下错误:

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

sudo apt-get安装libmysql-ruby libmysqlclient-dev

查看此问题https://stackoverflow.com/a/3608756/1970061

相关内容

  • 没有找到相关文章

最新更新