【发布时间】:2011-04-25 05:04:20
【问题描述】:
我尝试在 Windows 7 32 位上安装 mysql2 gem。
我跑:
gem install mysql2
我收到以下错误:
ERROR: Error installing mysql2:
The 'mysql2' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
任何想法可能导致此错误,以及如何解决此问题?
更新
我按照here 的描述做了所有事情,但我不知道最后一步:
gem install mysql2 --
'--with-mysql-lib="c:\Program Files\MySQL\MySQL Server 5.1\lib\opt"
--with-mysql-include="c:\Program Files\MySQL\MySQL Server 5.1\include"'
我知道我应该将路径更改为系统中的正确路径,但我在 WAMP MySQL 安装中找不到 lib\opt 和 include 目录。我使用 WAMP 2.1。
请指教。
【问题讨论】:
标签: ruby-on-rails ruby-on-rails-3 windows-7 wamp mysql2