gpt4 book ai didi

mysql - gem mysql2 未安装在 ruby​​ on rails 上

转载 作者:太空宇宙 更新时间:2023-11-04 04:45:32 26 4
gpt4 key购买 nike

<分区>

我安装了以下版本:

  • 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 服务器 5.6
  • mysql-connector-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"'

以上三个命令有以下错误:

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

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com