[英]How do install the MySQL2 gem with Ruby v2.0?
I was able to install the MySQL gem using: 我能够使用以下方法安装MySQL gem:
subst X: "C:\Program Files\MySQL\MySQL Server 5.6"
gem install mysql2 --platform=ruby -- --with-mysql-dir=X: --with-mysql-lib=X:\lib\opt
subst X: /D
Now I need to install the MySQL2 gem. 现在,我需要安装MySQL2 gem。 Can some please help me? 可以帮我吗?
I saw your other question about starting rails server. 我看到了有关启动Rails服务器的其他问题。
My recommendation is that you train using Railstutorial. 我的建议是您使用Railstutorial进行训练。 The link is here . 链接在这里 。
It will walk you through the process of getting a working environment running and writing Rails code. 它将引导您完成运行工作环境并编写Rails代码的过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.