on windows Mysql native extension prob in ruby on rails gem time

前端 未结 1 1270
情书的邮戳
情书的邮戳 2021-01-26 13:13

As I\'m new to ruby on rails,need help of pro\'s,in first app installation,as I\'m using Mysql DB on my system,i installed its gem also,but Im getting this error when I doing Bu

相关标签:
1条回答
  • 2021-01-26 13:33

    mysql2 0.2.13 was released without binaries for Windows. Because of that, compilation is required.

    Since you're using RailsInstaller, you already have pretty much all the components to solve this, but I will recommend you read a blog article I posted about compiling mysql/mysql2 gem on Windows:

    http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/

    Then, you can bundle install and since the gem was already installed, it should be working afterwards.

    0 讨论(0)
提交回复
热议问题