簡體   English   中英

Bundler找不到與gem“ actionpack”兼容的版本-Rails

[英]Bundler could not find compatible versions for gem “actionpack” - Rails

我是Ruby和Ruby on Rails的新手,我需要在現有Rails項目中進行一些更改:

我已經安裝了該項目所需的許多必需的gem,但是當我執行時: bundle install我有下一個錯誤:

在此處輸入圖片說明

我一直在谷歌搜索,並嘗試了許多事情,但有人修復它。

這是我的Gemfile內容:

source 'https://rubygems.org'

# Basicas
gem 'rails', '3.2.15'
gem 'mysql2'
gem 'actionpack', '3.2.15'
gem 'nokogiri', '1.3.3'

# Gestion y deployment
gem 'capistrano'
gem 'capistrano-db-tasks', require: false
gem 'capistrano-detect-migrations'
# gem 'rvm-capistrano'
gem 'capistrano-rbenv'
gem 'cape', '~> 1' # tareas rake via capistrano
gem 'exception_notification'

# General
gem 'paperclip'
gem 'cancan'
gem 'devise' # gem "devise_ldap_authenticatable"
gem 'inherited_resources'
gem 'meta_search'
gem 'tabletastic'
gem 'simple_form'
gem 'will_paginate'
gem 'show_for', git: 'https://github.com/plataformatec/show_for.git'
gem 'permanent_records'
gem 'acts_as_list'
gem 'paper_trail',  '~> 2'
gem 'dossier'
gem 'wicked_pdf'
gem 'deep_cloneable'
gem 'statistics'

# exportacion a excel
gem 'acts_as_xlsx' # xlsx para ActiveRecord
gem 'axlsx_rails' # xlsx para vistas

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
#  gem 'uglifier', '>= 1.0.3'
  gem 'jquery-rails'
  gem 'therubyracer', :platforms => :ruby

  gem 'less-rails'
  gem 'bootstrap-sass', '~> 2.3.1.0'
  gem 'font-awesome-sass-rails'
  gem 'bootstrap-datepicker-rails'
  gem 'bootstrap-datetimepicker-rails'
  gem 'bootstrap-wysihtml5-rails'
  gem 'bootswatch-rails' # temas para bootstrap
  gem 'chosen-rails'
  # gem 'turbo-sprockets-rails3'
end

group :development do
  gem 'thin'
  gem 'meta_request', '0.2.1'
  gem 'byebug'
  gem 'annotate', git: 'https://github.com/ctran/annotate_models.git'
  gem 'bullet'
  gem 'quiet_assets'
  gem 'better_errors'
  gem 'binding_of_caller' # para better_errors
  gem 'rails-erd' # entity diagrams

  gem 'guard'
  gem 'guard-rspec'
  gem 'guard-bundler'
  gem 'guard-spring'
  gem 'rb-inotify', require: false
  gem 'rb-fsevent', require: false
  gem 'rb-fchange', require: false
  gem 'growl' # linux/mac notifications
end

group :development, :test do
  gem 'rspec-rails'
  gem 'faker'
  gem 'machinist', '>= 2.0.0.beta2' # fixture replacement (blueprints)
  gem 'capybara'
  gem 'database_cleaner'
  gem 'awesome_print'
end

謝謝大家!

對於show_for,您需要使用不同於0.5.0的版本

gem 'show_for', git: 'https://github.com/plataformatec/show_for.git'

需要更改為

gem 'show_for', "~> version_that_can_work_with_actionpack_3"

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM