简体   繁体   English

RoR-Bundler找不到与宝石“ rails”兼容的版本

[英]RoR - Bundler could not find compatible versions for gem “rails”

When I ran bundle install this is the output I got: 当我运行bundle install这是我得到的输出:

kevindeMacBook-Pro:happy kevin$ bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rails":
  In Gemfile:
    auto-facebook (= 0.4) ruby depends on
      rails (= 4.0.0) ruby

    rails (4.1.1)

and I saw other similar problems , can use delete Gemfile.lock and bundle install . 而且我看到了其他类似的问题,可以使用delete Gemfile.lockbundle install but I can't found Gemfile.lock this file 但是我找不到Gemfile.lock这个文件

Gemfile 的Gemfile

source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'devise', '3.0.2'
gem "seo_helper", "~> 1.0.2"
gem "open_graph_helper"

gem "rmagick"
gem "carrierwave"
gem "carrierwave-meta"

gem "settingslogic"

gem "anjlab-bootstrap-rails", "2.3.1.2", :require => "bootstrap-rails"
gem "bootstrap_helper", ">= 4.2.2.1"
gem "simple_form", "~> 3.0.1" 
gem "will_paginate", "3.0.3"
gem "font-awesome-rails", "~> 3.2.1.3"

gem "high_voltage"

gem "airbrake"

gem "rvm-capistrano"

gem "omniauth"
gem "omniauth-facebook"
gem "auto-facebook", "0.4"


gem "whenever"

gem "hipchat"

# Cache
gem "dalli"

gem "compass-rails", "~> 1.1.2"

group :development do
  gem "capistrano"
  gem "capistrano-ext"
  gem "cape"
  gem "binding_of_caller"
  gem "better_errors", "~> 0.9.0"
  gem "magic_encoding"
  gem "annotate"
  gem "powder"
  gem "pry-nav"
  gem "pry-remote"
end

Change: 更改:

gem "auto-facebook", "0.4"

to

gem "auto-facebook", "~> 0.42"

It looks like 0.4 has the rails version fixed at 4.0.0: https://rubygems.org/gems/auto-facebook/versions/0.4 看起来0.4的rails版本固定在4.0.0: https : //rubygems.org/gems/auto-facebook/versions/0.4

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

相关问题 RoR - Bundler 找不到 gem 的兼容版本 - RoR - Bundler could not find compatible versions for gem Ruby 导轨错误:捆绑器找不到 gem“捆绑器”的兼容版本: - Ruby rails error: Bundler could not find compatible versions for gem "bundler": Bundler 找不到 gem“bundler”的兼容版本: - Bundler could not find compatible versions for gem "bundler": Bundler找不到宝石“ bundler”的兼容版本 - Bundler could not find compatible versions for gem “bundler” ActiveAdmin with Rails 4:Bundler找不到宝石“ rails”的兼容版本 - ActiveAdmin with Rails 4: Bundler could not find compatible versions for gem “rails” Bundler无法找到gem的兼容版本,更新了Rails app - Bundler could not find compatible versions for gem, updating Rails app Bundler 安装 - 找不到 gem“actionpack”的兼容版本 - Rails 5 - Bundler install - could not find compatible versions for gem "actionpack" - Rails 5 Bundler找不到与宝石“ rails”兼容的版本:大礼包 - Bundler could not find compatible versions for gem “rails”: for spree Bundler无法为Rails 4.0.0找到gem“railties”的兼容版本 - Bundler could not find compatible versions for gem “railties” for Rails 4.0.0 RAILS:Bundler在安装ActiveAdmin时找不到gem“actionpack”的兼容版本 - RAILS : Bundler could not find compatible versions for gem “actionpack” on installing ActiveAdmin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM