免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4663 | 回复: 1
打印 上一主题 下一主题

can't activate mysql [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-11-19 19:22 |只看该作者 |倒序浏览
本帖最后由 liu-shaobo 于 2012-11-19 19:24 编辑

请教各位 gem 问题

Please install the mysql adapter: `gem install activerecord-mysql-adapter` (can't activate mysql (~> 2.8.1, runtime), already activated mysql-2.9.0. Make sure all dependencies are added to Gemfile.)
/www/redmine-2.1.2/lib/plugins/acts_as_activity_provider/init.rb:2
/www/redmine-2.1.2/config/initializers/00-core_plugins.rb:12
/www/redmine-2.1.2/config/initializers/00-core_plugins.rb:2:in `each'
/www/redmine-2.1.2/config/initializers/00-core_plugins.rb:2
/www/redmine-2.1.2/config/environment.rb:14
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)

已经安装的gem 模块
actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
arel (3.0.2)
builder (3.0.0)
bundler (1.2.2)
coderay (1.0.8)
erubis (2.7.0)
fastercsv (1.5.5)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (2.0.3)
json (1.7.5)
mail (2.4.4)
mime-types (1.19)
multi_json (1.3.7)
mysql (2.9.0)
net-ldap (0.3.1)
polyglot (0.3.3)
rack (1.4.1)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.8)
railties (3.2.8)
rake (10.0.1)
rdoc (3.12)
rmagick (2.13.1)
ruby-openid (2.1.8)
sprockets (2.1.3)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.12)
tzinfo (0.3.35)


我卸载2.9.0 后
gem install -v=2.8.1 mysql
gem uninstall -v=2.9.0

执行又出现这个错误,晕了
# rake db:migrate RAILS_ENV=production
Could not find mysql-2.9.0 in any of the sources
Run `bundle install` to install missing gems.

论坛徽章:
0
2 [报告]
发表于 2012-11-19 19:49 |只看该作者
修改Gemfile 的如下行就可以了,

   gem "mysql", "2.8.1"
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP