导轨 3 不适用于 Windows 7 [英] rails 3 not working with windows 7
问题描述
红宝石 1.8.7宝石 1.3.7导轨 3.0.0, 3.0.0.rc
ruby 1.8.7 gem 1.3.7 rails 3.0.0, 3.0.0.rc
当我写 rails -v错误信息来了
when i write rails -v error message come
在任何 gem 源中都找不到 gem 'mysql2 <>=0, runtime>'.尝试运行捆绑安装".
当我运行 bundle install 然后它也不能安装 mysql2
when I run bundle install then also it cann't install mysql2
请帮帮我.
推荐答案
mysql2
gem 目前不支持 Windows(尽管 我听说他们正在努力).现在只需使用旧的 mysql
gem.
The mysql2
gem does not currently support Windows (although I hear they are working on it). Just use the old mysql
gem for now.
具体来说:
将此行放入您的 Gemfile:
Put this line in your Gemfile:
gem 'mysql', '2.8.1'
运行捆绑安装
确保在您的 database.yml
中使用 adapter: mysql
和 not adapter: mysql2
>.
Make sure you use adapter: mysql
and not adapter: mysql2
in your database.yml
.
这是我的系统目前的设置方式,它在 Rails 3.0.0 上运行良好.
This is how my system is currently set up, and it works fine with Rails 3.0.0.
这篇关于导轨 3 不适用于 Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!