简体   繁体   English

捆绑安装错误activeadmin ransack

[英]bundle install error activeadmin ransack

Am trying to install my own project onto a secondary computer - both are macosx 10.8.4, both setup using macports and RVM. 我正在尝试将自己的项目安装到辅助计算机上-两者均为macosx 10.8.4,均使用macports和RVM进行设置。

For some reason as I'm trying to bundle install I'm getting this error: 由于某些原因,当我尝试捆绑安装时,出现此错误:

``` ```

Bundler could not find compatible versions for gem "ransack": In Gemfile: activeadmin (>= 0) ruby depends on ransack (>= 1.0.0) ruby Bundler找不到与宝石“ ransack”兼容的版本:在Gemfile中:activeadmin(> = 0)ruby取决于ransack(> = 1.0.0)ruby

ransack (0.7.3)

Bundler could not find compatible versions for gem "actionpack": In Gemfile: ransack (>= 0) ruby depends on actionpack (>= 4.0.0) ruby 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)

``` ```

Not sure why bundle install works fine on one computer and not the other; 不确定为什么捆绑安装在一台计算机上能正常工作而在另一台计算机上不能正常工作; I recently participated in this ransack issue on with activeadmin on github and it seemed to be fixed; 我最近在github上用activeadmin参与了这个ransack问题,该问题似乎已得到解决。 unsure why it's popping up again. 不确定为什么会再次弹出。

UPDATE: gem file: 更新: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

I think you don't want to use the rails-4 branch of ransack . 我认为您不想使用ransackrails-4分支。 It looks like the current master version supports Rails 4. 看起来当前的master版本支持Rails 4。

The dependency on the rails4 branch of activeadmin says that it needs ransack >= 1.0.0 , but the version of ransack on the rails-4 branch is 0.7.3 . 对依赖rails4的分支activeadmin说,它需要ransack >= 1.0.0 ,但是版本ransackrails-4分支是0.7.3

It is probably a better idea to use the released versions of gems from Rubygems unless you need specific unreleased fixes in the Git repo. 最好使用Rubygems发行的gem版本,除非您在Git存储库中需要特定的未发行补丁,否则最好使用该版本。

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

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