当前位置:Gxlcms > mysql > rails4安装geminstallmysql报checkingformain()in

rails4安装geminstallmysql报checkingformain()in

时间:2021-07-01 10:21:17 帮助过:21人阅读

1、http://dev.mysql.com/downloads/mysql/ 这个地址下载符合自己系统的mysql installer 2、安装 3、运行 gem install mysql --platform=ruby -- '--with-mysql-lib=C:\mysql-connector-c-6.1.3-winx64\lib --with-mysql-include=C:\mysql-connector-c-6.1.3

1、http://dev.mysql.com/downloads/mysql/ 这个地址下载符合自己系统的mysql installer

2、安装

3、运行 gem install mysql --platform=ruby -- '--with-mysql-lib="C:\mysql-connector-c-6.1.3-winx64\lib" --with-mysql-include="C:\mysql-connector-c-6.1.3-winx64\include" --with-mysql-dir="C:\mysql-connector-c-6.1.3-winx64" '

如果不行,尝试运行 gem install mysql --platform=ruby -- '--with-mysql-dir="C:\mysql-connector-c-6.1.3-winx64"'


get from Moshe Katz's answer ,link is http://stackoverflow.com/questions/19014117/ruby-mysql2-gem-installation-on-windows-7

人气教程排行