首頁  >  文章  >  資料庫  >  rails 4 安装gem install mysql 报checking for main() in

rails 4 安装gem install mysql 报checking for main() in

WBOY
WBOY原創
2016-06-07 15:34:30853瀏覽

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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn