简体   繁体   English

捆绑软件安装后出现错误

[英]Error after bundle install

I am trying to install activeadmin-globalize My system: 我正在尝试安装activeadmin-globalize我的系统:

Rails 3.2.13 ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux] Gem 1.8.23 Rails 3.2.13 ruby​​ 1.9.3p429(2013-05-15修订版40747)[x86_64-linux] Gem 1.8.23

Added this to Gemfile: gem "activeadmin-globalize", git: 'https://github.com/stefanoverna/activeadmin-globalize', branch: 'master ' 将此添加到Gemfile: gem "activeadmin-globalize", git: 'https://github.com/stefanoverna/activeadmin-globalize', branch: 'master '

Then bundle install 然后bundle install

Then it gives me error: 然后给我错误:

Updating https://github.com/stefanoverna/activeadmin-globalize
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activemodel":
  In Gemfile:
    activeadmin-globalize (>= 0) ruby depends on
      activemodel (< 5, >= 4.0.0) ruby

    paperclip (~> 3.0) ruby depends on
      activemodel (3.2.13)

Before this other gem installations didn't fail. 在此之前,其他gem安装都没有失败。

My Gemfile 我的宝石文件

source 'https://rubygems.org'

gem 'rails', '3.2.13'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'mysql2'
gem 'therubyracer'
gem "passenger", "~> 4.0.37"
gem "ancestry", "~> 2.0.0"
gem 'friendly_id'
gem 'devise'

gem "activeadmin-globalize", git: 'https://github.com/stefanoverna/activeadmin-globalize', branch: 'master'
#gem "jquery-rails", "< 3.0.0"
gem 'jquery-rails', '~> 2.3.0'
gem 'activeadmin'
gem 'will_paginate', '3.0' 
gem 'globalize3'
#gem 'jquery-ui-rails'
gem "paperclip", "~> 3.0"
gem "tinymce-rails", "~> 3.5.9.pre2"

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

#gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'

You trying to use activemodel >= 4.0 (part of Rails 4.0) with Rails 3.0. 您尝试将Activemodel> = 4.0(Rails 4.0的一部分)与Rails 3.0一起使用。

Probably you should use one of older versions of activeadmin-globalize (if it requires lower version of activemodel). 可能应该使用较旧版本的activeadmin-globalize之一(如果需要较低版本的activemodel)。

Or You can upgrade your Rails to version >= 4.0 或者您可以将Rails升级到> = 4.0版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM