已初始化的常量Bundler :: Dsl :: RAILS_VERSION_IS_3

时间:2015-05-28 10:54:40

标签: ruby-on-rails ruby bundle redmine redmine-plugins

在rails项目中键入rails -v(redmine 2.3)

终端记录:

(eval):9: warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3 (eval):9: warning: previous definition of RAILS_VERSION_IS_3 was here Rails 3.2.13

输入bundle update

终端:

```

Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Your Gemfile lists the gem thin (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem redcarpet (>= 0) more than once.
You should probably keep only one of them.
(eval):9: warning: already initialized constant Bundler::Dsl::RAILS_VERSION_IS_3

(eval):9:警告:RAILS_VERSION_IS_3的先前定义在这里

```

RAILS_ENV =开发包exec rake redmine:plugins:migrate NAME = redmine_backlogs VERSION = 0

使用相同的错误日志。

我不知道如何解决。

环境: ruby2.0,rails3.2,rvm1.26.11,Bundler version 1.9.9

1 个答案:

答案 0 :(得分:0)

  remote: http://ruby.taobao.org/
  remote: https://rubygems.org/
  specs:
    ZenTest (4.5.0)
    actionmailer (3.2.13)
      actionpack (= 3.2.13)
      mail (~> 2.5.3)
    actionpack (3.2.13)
      activemodel (= 3.2.13)
      activesupport (= 3.2.13)
      builder (~> 3.0.0)
      erubis (~> 2.7.0)
      journey (~> 1.0.4)
      rack (~> 1.4.5)
      rack-cache (~> 1.2)
      rack-test (~> 0.6.1)
      sprockets (~> 2.2.1)
    activemodel (3.2.13)
      activesupport (= 3.2.13)
      builder (~> 3.0.0)