标签:mysql gem ruby xampp windows
之前可能需要从libmysql.dll生成libmysqlclient.a: 来源
cd C:\xampp-1.8.3\mysql\lib
C:\DevKit-tdm-32-4.5.2-20111229-1559-sfx\devkitvars.bat
pexports.exe libmysql.dll > libmysql.def
//来源:C:\strawberry\c\bin\pexports.EXE 幸亏安装了perl,否则不知道到哪里找这个pexports工具下了
dlltool --input-def libmysql.def --dllname libmysql.dll --output-lib libmysqlclient.a -k
c:\redmine-2.6.0>gem install mysql2 --version=0.3.16 --platform=ruby -- --with-mysql-include=C:\xampp-1.8.3\mysql\include --with-mysql-lib=C:\xampp-1.8.3\mysql\lib
bundle install
Windows上成功安装Ruby-1.9.3 gem mysql2
标签:mysql gem ruby xampp windows
原文地址:http://blog.csdn.net/cteng/article/details/40684401