我试图将自己的项目安装到辅助计算机上 - 两者都是macosx 10.8.4,都使用macports和RVM进行设置。
由于某种原因,我正在尝试捆绑安装,我收到此错误:
```
Bundler找不到gem“ransack”的兼容版本: 在Gemfile中: activeadmin(> = 0)ruby取决于 ransack(> = 1.0.0)ruby
ransack (0.7.3)
Bundler找不到gem“actionpack”的兼容版本: 在Gemfile中: ransack(> = 0)ruby取决于 actionpack(> = 4.0.0)ruby
sass-rails (~> 4.0.0) ruby depends on
actionpack (4.0.0.beta1)
```
不确定为什么捆绑安装在一台计算机上工作正常而另一台计算机无效;我最近参加了关于github上的activeadmin的ransack问题,它似乎已经修复了;不确定为什么它会再次出现。
更新:gem文件:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 4.0.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# 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'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
gem 'ZenTest'
# Add Foundation Here
#gem 'compass-rails' # you need this or you get an err
# gem 'compass-rails', github: 'milgner/compass-rails', branch: 'rails4'
# gem 'zurb-foundation', '~> 4.0.0'
gem 'paperclip', '>= 3.4.0' # image upload
gem 'aws-sdk'
# gem 'bootstrap-sass', '~> 2.3.2.1'
gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails',
:github => 'anjlab/bootstrap-rails',
:branch => '3.0.0'
gem 'devise', github: 'plataformatec/devise'
gem 'devise_security_extension', :github => 'phatworx/devise_security_extension' # security questions
# administration
gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4'
gem 'ransack', github: 'ernie/ransack', branch: 'rails-4'
gem 'inherited_resources', github: 'josevalim/inherited_resources'
gem 'formtastic', github: 'justinfrench/formtastic'
gem "rich", github: 'bastiaanterhorst/rich'
# gem 'active_admin_editor'
gem 'survey', :git => 'git://github.com/runtimerevolution/survey.git'
# voting
# gem 'acts_as_votable', github: 'ryanto/acts_as_votable'
gem "acts_as_votable", "~> 0.7.1"
gem 'friendly_id', '5.0.0.beta4' # Note: You MUST use 5.0.0 or greater for Rails 4.0+
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'meta_request'
gem 'rspec-rails'
gem 'spork'
gem 'spork-rails', :github => 'sporkrb/spork-rails'
gem 'annotate'
end
group :test do
gem 'rspec'
gem 'autotest'
gem 'autotest-growl'
gem 'autotest-fsevent'
end
答案 0 :(得分:1)
我认为您不想使用rails-4
的{{1}}分支。看起来当前的ransack
版本支持Rails 4。
对master
的{{1}}分支的依赖性表明它需要rails4
activeadmin
,但ransack
上的>= 1.0.0
版本branch是ransack
。
使用Rubygems发布的gem版本可能是个更好的主意,除非你需要在Git仓库中发布特定的未发布的修补程序。