我尝试mysql2
在 Windows 7 32 位上安装 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'
有什么想法可能导致此错误,以及如何解决此问题?
更新
我按照这里的描述做了所有事情,但我不知道最后一步:
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。
请指教。