Ruby on Rails Bundler activeadmin gem install error - ruby-on-rails

I am running into issues when trying to install the activeadmin gem. I am using Ruby 2.0 and Rails 4.0.2.
Here is what I get when I run "bundle install" in my project directory:
C:\Users\Samuel\Desktop\RubyonRailsWorkspace\GroupSRailsProjectNew>bundle install
DL is deprecated, please use Fiddle
Updating git://github.com/gregbell/active_admin.git
fatal: failed to open '/cygdrive/c/Users/Samuel/Desktop/RubyonRailsWorkspace/Gro
upSRailsProjectNew/C:/Ruby200-x64/lib/ruby/gems/2.0.0/cache/bundler/git/active_a
dmin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca/objects': No such file or directory
Retrying git clone --no-checkout "C:/Ruby200-x64/lib/ruby/gems/2.0.0/cache/bundl
er/git/active_admin-d67faab65e9b74efbc8efb4a777a851e9f78b2ca" "C:/Ruby200-x64/li
b/ruby/gems/2.0.0/bundler/gems/active_admin-60d8be97ec2c" due to error (2/3): Bu
ndler::Source::Git::GitCommandError Git error: command `git clone --no-checkout
"C:/Ruby200-x64/lib/ruby/gems/2.0.0/cache/bundler/git/active_admin-d67faab65e9b7
4efbc8efb4a777a851e9f78b2ca" "C:/Ruby200-x64/lib/ruby/gems/2.0.0/bundler/gems/ac
tive_admin-60d8be97ec2c"` in directory C:/Users/Samuel/Desktop/RubyonRailsWorksp
ace/GroupSRailsProjectNew has failed.
If this error persists you could try removing the cache directory 'C:/Ruby200-x6
4/lib/ruby/gems/2.0.0/cache/bundler/git/active_admin-d67faab65e9b74efbc8efb4a777
a851e9f78b2ca'
This is what I get when I run "gem install activeadmin":
C:\Users\Samuel\Desktop\RubyonRailsWorkspace\GroupSRailsProjectNew>gem install activeadmin
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: rails requires activesupport (= 3.2.16), actionpack
(= 3.2.16); actionmailer requires actionpack (= 3.2.16); activeresource
requires activesupport (= 3.2.16); meta_search requires activesupport (~> 3.1),
actionpack (~> 3.1); activerecord requires activesupport (= 3.2.16); activemodel
requires activesupport (= 3.2.16), builder (~> 3.0.0); railties requires rack-s
sl (~> 1.3.2), rdoc (~> 3.4), activesupport (= 3.2.16), actionpack (= 3.2.16)
Here is my GemFile:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
# 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 CarrierWave for File uploading
gem 'carrierwave'
gem 'mini_magick'
gem 'jquery-fileupload-rails'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# Admin Panel
#gem "ransack", github: "activerecord-hackery/ransack", branch: "rails-4"
gem 'activeadmin', github: 'gregbell/active_admin'
#gem 'i18n', github: 'svenfuchs/i18n'
# 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'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
gem 'execjs'
# gem 'therubyracer'
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.1.2'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
Any help would be greatly appreciated in fixing this issue.

The gem you are trying to install requires rails 3.2.* and you are using 4.0. Either downgrade rails or use anther gem.
Use this to install activeadmin for rails 4: Active admin install with Rails 4
gem 'activeadmin', github: 'gregbell/active_admin', branch: "rails4"

You are running the bundle install from windowscmd, while had begun to run it from cygwin shell, try to run from cygwin shell, because I see you have mixed the native windows, and cygwin path styles up.

Related

Rails update from 6.1 to 7.0.4 Gem dependencies issues

I was trying to update my rails app from Rails 6.1 to 7.0.4.
When I try to bundle install after updating rails and ruby on my gemfile.
I couldn't find any gem version to change on my gemfile.
Here's my gemfile :
ruby "3.1.2"
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem "rails", "~> 7.0.4"
# Use postgresql as the database for Active Record
gem 'pg', '~> 1.1'
gem 'activerecord', '>= 7.0.4'
gem 'actionpack', '>= 7.0.4'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 5.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Active Storage variant
# gem 'image_processing', '~> 1.2'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', require: false
gem 'devise'
gem 'pundit'
gem 'simple_token_authentication'
gem 'autoprefixer-rails'
gem 'font-awesome-sass', '~> 6.1'
gem 'simple_form'
# Charts
gem "chartkick"
# Generateur de PDF
gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
gem 'wkhtmltopdf-heroku', '2.12.6.0'
# Editeur de texte
gem 'ckeditor', github: 'galetahub/ckeditor'
gem "mini_magick"
gem "select2-rails"
gem 'select2_simple_form', github: 'lndl/select2_simple_form', tag: '0.7.3'
gem 'sidekiq'
gem 'sidekiq-failures', '~> 1.0'
# Cloud Storage
gem "aws-sdk-s3", require: false
gem "down"
gem "image_processing", ">= 1.2"
# transform file via zip
gem 'rubyzip', '>= 1.0.0'
gem 'zip-zip'
# XML reader
gem 'nokogiri', '~> 1.6', '>= 1.6.6.2'
group :development, :test do
gem 'pry-byebug'
gem 'pry-rails'
gem 'dotenv-rails'
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: %i[mri mingw x64_mingw]
end
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 4.1.0'
# Display performance information such as SQL time and flame graphs for each request in your browser.
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
gem 'rack-mini-profiler', '~> 2.0'
gem 'listen', '~> 3.3'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 3.26'
gem 'selenium-webdriver'
# Easy installation and use of web drivers to run system tests with browsers
gem 'webdrivers'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
And here's the error I always get :
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
rails (~> 7.0.4) was resolved to 7.0.4, which depends on
actionpack (= 7.0.4)
simple_token_authentication was resolved to 1.13.0, which depends on
actionpack (< 5, >= 3.2.6)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
rails (~> 7.0.4) was resolved to 7.0.4, which depends on
activerecord (= 7.0.4)
simple_token_authentication was resolved to 1.5.2, which depends on
activerecord (< 5, >= 3.2.6)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 7.0.4)
simple_token_authentication was resolved to 1.0.0.pre.beta.2, which depends on
rails (~> 4.0.0)
I've tried to reinstall bundle and each gems by looking at the dependencies showed here : https://rubygems.org/gems/rails/versions/7.0.4/dependencies.
After many researchs, I coudln't find a way to unlock the situation, each tries leads to the dependencies error showed earlier.
Actionpack and activerecord are bundled directly with rails, so it updates alongside.
simple_token_authentication is dependent on an earlier version of rails, so you need to update it as well.
It appears to be dependent in <5 which is odd considering you say you’re updating from 6.1, but I’ll assume your bundle functioned before.
However, it looks like you’re using the latest version, so your options are to find a different gem or wait for the gem to be updated.

Errors when doing Bundle Update

I updated my ruby to 3.0.0 but for some reason now my application doesn't work. I have searched online for different answered but I cannot find anything. This error has gotten me going crazy now. Here is what happens.
When I do bundle update I get:
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby (~> 3.0.0)
thredded (~> 0.16.13) was resolved to 0.16.16, which depends on
ruby (~> 2.3)
I looked online and someone said to do bundle update rails but when I do I get this error:
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
active_model_serializers was resolved to 0.10.10, which depends on
activemodel (>= 4.1, < 6.1)
challonge-api was resolved to 0.2.0, which depends on
activeresource was resolved to 5.1.0, which depends on
activemodel-serializers-xml (~> 1.0) was resolved to 1.0.2, which
depends on
activemodel (> 5.x)
challonge-api was resolved to 0.2.0, which depends on
activeresource was resolved to 5.1.0, which depends on
activemodel (>= 5.0, < 7)
carrierwave was resolved to 2.0.2, which depends on
activemodel (>= 5.0.0)
rails (= 6.1.2.1) was resolved to 6.1.2.1, which depends on
activemodel (= 6.1.2.1)
Any ideas what I need to do?
Here is my gem file:
source 'https://rubygems.org'
ruby '~> 3.0.0'
Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '6.1.2.1'
Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0.0'
Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
Use jquery as the JavaScript library
gem 'jquery-rails'
gem 'merit', '= 3.0.1'
Used to implement at.js for auto complete mentions/emojis
gem 'jquery-atwho-rails'
Use twitter bootstrap sass
gem 'bootstrap-sass', '~> 3.4.0'
gem 'autoprefixer-rails'
gem 'font-awesome-rails'
gem 'font-awesome5-rails', '~> 1.0', '>= 1.0.1'
gem 'font_awesome5_rails'
gem 'xbox_live_api'
gem 'faraday'
gem 'oj'
gem 'thredded', '~> 0.16.13'
gem 'rails-ujs'
group :development do
gem 'spring'
gem 'letter_opener'
gem 'guard'
gem 'guard-rspec', '~> 4.2.8'
gem 'byebug'
end
group :development, :test do
gem 'puma'
gem 'sqlite3', '~> 1.3.6'
end
group :production do
gem 'pg', '~>0.18'
gem 'unicorn'
gem 'cloudinary'
gem 'rails_12factor'
gem 'fog'
gem 'fog-aws'
end
gem 'devise'
gem 'carrierwave'
gem 'friendly_id', '~> 5.0'
gem 'will_paginate', '~> 3.1.0'
gem 'public_activity'
gem 'acts_as_votable', '~> 0.10.0'
gem 'acts_as_commentable'
gem 'acts_as_follower'
gem 'counter_culture', '~> 0.1.33'
gem 'faker'
gem 'populator'
gem 'auto_html', '~>1.6.4'
gem 'sanitize'
gem 'active_model_serializers'
gem 'private_pub'
gem 'thin'
Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1.7'
Use unicorn as the app server
gem 'unicorn'
Use Capistrano for deployment
gem 'capistrano-rails', group: :development
Use debugger
gem 'debugger', group: [:development, :test]
gem 'round_robin_tournament'
gem 'tournament-system', '~> 2'
gem 'challonge-api'
gem 'tournament'
gem 'oauth2'
gem 'activerecord-session_store'
gem "simple_calendar", "~> 2.0"
Currently Ruby 3.0 is not supported with Rails, as there will be next release for Rails. You can do following and it works by installing dev branch of ruby 3. I used ruby 3.1.0dev (2021-02-14T05:09:08Z master ff527e7e32) [x86_64-darwin19] Following commands are with RVM you can use same with other softwares I tried by installing
rvm install ruby-head
This command installed version ruby 3.1.0dev Now install rails
gem install rails
Now create new project
rails new test_rails
now run it using rails s' if you are getting error that ruby version 3.1.0 required is because rails has added this in .ruby-version` so it is just warning no issue. You can try latest version but as I said it is dev version not stable. Note ruby-head will keep changing version of ruby installed as it is latest version. And good news it is blazing fast! I love it.
I suggest use ruby 2.7.2 with rails 6 till new release comes, the above is for test purpose only, not production or actual product. You should use ruby 2.7.2 for production or product.

Upgrade rails from 4.2 to 5.2 dependencies issue

I'm doing this upgrade for the first time and I'm facing problem on very first step :-(
Basically I want to upgrade rails version of my project so I changed my Gemfile for the rails 5.2 and tried to run:
bundle update rails
as given here but I can not update bundle and am getting the following error
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
rails (~> 5.2) was resolved to 5.2.1.rc1, which depends on
activerecord (= 5.2.1.rc1)
schema_plus_views was resolved to 0.3.1, which depends on
activerecord (~> 4.2)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.2)
gaffe was resolved to 1.2.0, which depends on
rails (>= 4.0.0)
rails_admin was resolved to 1.3.0, which depends on
rails (< 6, >= 4.0)
rails_admin_globalize_field was resolved to 0.4.0, which depends on
rails (>= 4.2)
sql-logging was resolved to 3.0.10, which depends on
rails (>= 4.0)
Bundler could not find compatible versions for gem "rake":
In Gemfile:
rake (~> 11.2)
capistrano (~> 3.6) was resolved to 3.11.0, which depends on
rake (>= 10.0.0)
derailed_benchmarks was resolved to 1.3.2, which depends on
rake (< 13, > 10)
My Gemfile is
source 'https://rubygems.org'
gem 'pg', platform: :ruby
gem 'schema_plus_views'
gem 'fix-db-schema-conflicts', github: 'davidlibrera/fix-db-schema-conflicts'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rake', '~> 11.2'
gem 'rails', '~> 4.2'
# gem 'rb-readline'
# Use postgresql as the database for Active Record
# Use SCSS for stylesheets
gem 'sass-rails'
gem "less-rails", platform: :ruby #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails'
gem "typescript-rails"
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem "bootstrap-sass"
gem "font-awesome-rails"
gem 'haml'
# Use jquery as the JavaScript library
gem 'jquery-rails'
gem "bower-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 'oj'
gem 'jbuilder'
gem 'angular-rails-templates'
gem 'gaffe'
gem 'color-generator'
# Use ActiveModel has_secure_password
gem 'bcrypt', '~> 3.1'
# we have keep redis client below version 4 until this issue is solved
# https://github.com/antirez/redis/issues/4272
# and we have to keep redis below 3.3.2 until this issue is solved
# https://github.com/redis/redis-rb/issues/650
gem 'redis', '3.3.5', require: %w(redis redis/connection/hiredis)
gem 'hiredis'
gem 'puma'
gem 'puma_worker_killer'
gem "dalli"
gem 'jbuilder_cache_multi'
gem 'globalize', '~> 5.0'
gem 'rack-attack'
gem 'ya2yaml'
gem 'cells-rails'
gem 'cells-erb'
# gem 'highline'
gem 'kaminari'
gem 'nokogiri'
gem 'zss', git: "https://github.com/ISEngineering/zmq-service-suite-ruby", platform: :ruby
gem 'ffi-rzmq', '2.0.4'
gem 'therubyracer'
gem "paperclip", "~> 4.3"
gem 'bootstrap-wysihtml5-rails'
gem 'rails-i18n', '~> 4.0'
# Excel depdendencies
gem 'xlsxtream', '>= 2'
# Excel legacy export
gem 'axlsx_rails', '0.5.1'
gem 'axlsx', git: 'https://github.com/randym/axlsx.git'
gem 'rubyzip', '>= 1.2.1'
gem 'zip-zip'
gem 'devise', '~> 4.2'
gem 'devise-i18n'
gem 'savon', '~> 2.10'
gem 'party_foul', git: 'https://github.com/alexanderadam/party_foul.git', branch: 'bugfix/132-dont-assume-that-exceptions-have-a-backtrace' #'>= 1.5.5'
gem 'ledermann-rails-settings'
gem 'dentaku'
gem 'delayed_job_active_record'
gem 'cancancan'
gem 'rolify'
gem 'rails_admin'
gem 'enumerize'
gem 'rails_admin_settings'
gem 'rails_admin_globalize_field'
gem 'trailblazer-rails'
gem 'premailer-rails'
gem 'bulk_insert'
# for assets that are referenced by libraries in vendor/assets
gem 'non-stupid-digest-assets'
gem 'actionpack-action_caching'
gem 'dotenv-rails'
group :development, :test do
gem 'database_cleaner'
gem 'rspec-rails'
gem 'pry'
gem 'pry-nav'
gem 'awesome_print'
gem 'mocha'
gem 'webmock' # for vcr
gem 'vcr'
gem 'chromedriver-helper', '>= 2.1.0'
gem 'selenium-webdriver', '3.9.0'
gem 'capybara'
end
group :test do
gem 'factory_bot_rails'
gem 'db-query-matchers'
gem 'capybara-screenshot'
gem 'fakeredis', require: 'fakeredis/rspec'
end
group :development do
gem 'i18n-tasks'
gem 'spring'
gem 'letter_opener'
gem 'derailed_benchmarks'
gem 'sql-logging'
gem 'rubocop'
gem 'rubocop-rspec'
gem 'fasterer'
gem 'better_errors'
gem 'binding_of_caller'
gem 'activerecord-colored_log_subscriber' # this won't be required with rails 5 anymore
# Use Capistrano for deployment
gem 'capistrano', '~> 3.6'
gem 'capistrano-rbenv', '~> 2.0'
gem 'capistrano-bundler', '~> 1.1.2'
gem 'capistrano-rails'
gem 'capistrano3-puma', github: "seuros/capistrano-puma"
gem 'capistrano3-delayed-job', '~> 1.0'
end
group :profile do
gem 'ruby-prof'
end
gem 'sdoc', group: :doc
gem 'sshkit' # is needed to load tasks on server
What should I do?
First, as ThorTL67 noted in the comments, it is a good idea to update your Rails version incrementally, not in one big leap. That way, your dependency issues will be less complex.
Check what version of Bundler you are using by running bundle version. If that version is old, it might be that some dependencies are not correctly calculated, and it might help to update Bundler (gem update bundler).
Then to the steps you can take to update from 4.2 to 'some higher version'. The list of errors that you got shows the conflicts between gem dependencies. You can try and tackle these conflicts one by one.
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
rails (~> 5.2) was resolved to 5.2.1.rc1, which depends on
activerecord (= 5.2.1.rc1)
schema_plus_views was resolved to 0.3.1, which depends on
activerecord (~> 4.2)
This error is pretty straightforward. It tells you that gem rails needs activerecord v5.2.1, but that gem schema_plus_views needs activerecord >= 4.2.0 but < 5.0 (see the RubyGems explanation of constraints). So how to resolve this? If you check the source page for schema_plus_views, you see that there is no compatible version yet for activerecord v5.2.1, and that it is not likely to be there soon: Any plan to update this gem to be compatible with rails 5.2?
So in this case, you have a few options. Leave it out of your Gemfile and remove the dependencies on this gem from your code; check for alternative gems that give you the needed functionality; help to update the gem to support rails 5.
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (~> 5.2)
gaffe was resolved to 1.2.0, which depends on
rails (>= 4.0.0)
rails_admin was resolved to 1.3.0, which depends on
rails (< 6, >= 4.0)
rails_admin_globalize_field was resolved to 0.4.0, which depends on
rails (>= 4.2)
sql-logging was resolved to 3.0.10, which depends on
rails (>= 4.0)
I'm actually not sure what the problem is here. These dependencies on the rails gem do not seem to contradict each other, so I would try to find out what gem is the actual problem by commenting them out one by one and then trying the update again. This might give you more information.
Bundler could not find compatible versions for gem "rake":
In Gemfile:
rake (~> 11.2)
capistrano (~> 3.6) was resolved to 3.11.0, which depends on
rake (>= 10.0.0)
derailed_benchmarks was resolved to 1.3.2, which depends on
rake (< 13, > 10)
This also seems like it should not be a problem. I would try to change your rake dependency in your Gemfile from gem 'rake', '~> 11.2' to gem 'rake' and see what happens with the dependency messages.
Chances are that after all these steps, you will get different error messages. You have to tackle them one by one in the same manner. Unfortunately, there is no silver bullet, and updating Rails can be a tedious process, especially when your application depends on a lot of gems. You have to fix this, issue by issue, by removing your own dependencies on gems, helping gem communities with maintenance/updates, or (worst case) forking a gem and changing the code yourself to make it work again for your application. Good luck!
In order to update your dependencies, you can use tools like bummr. Please, be sure to have a good test suite as the README specify. After that, you can start fixing compatibility issues, deprecations and more.

Rails 4.0.0, Neo4j - Bundler could not find compatible versions for gem "railties"

I have installed jruby and trying to use Neo4j for my Rails app. But typing bundle install gives me the following conflict.
Bundler could not find compatible versions for gem "railties":
In Gemfile:
neo4j (>= 2.2.3) java depends on
railties (< 3.3, >= 3.0.0) java
rails (= 4.0.0) java depends on
railties (4.0.0)
Here's my gemfile:
source 'https://rubygems.org'
gem 'rails', '4.0.0'
gem 'sass-rails'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails'
gem 'therubyrhino'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
group :doc do
gem 'sdoc', require: false
end
gem 'bcrypt-ruby', '~> 3.0.0'
gem 'unicorn'
gem 'capistrano', group: :development
group :development, :test do
gem "rspec-rails"
end
gem "neo4j", ">= 2.2.3"
Should I remove my Gemfile.lock and run bundle update? Thanks!
There is a branch for rails 4 in the neo4j project, so you can just specify it in Gemfile:
gem 'neo4j', git: 'git://github.com/andreasronge/neo4j.git', branch: 'rails4'
That says that the currently available version of neo4j require a version of railties < 3.3, but rails 4.0.0 requires version 4.0.0 of railties: bundler cannot resolve this conflict.
The only way out of this is for neo4j to be updated to work with rails 4.0. It is entirely possible that neo4j's version constraint on railties is a precaution only - there may be nothing more to do than checking that everything still works under 4.0.

How can I resolve these Rails gem dependecies after adding rmre 0.0.4?

I made a new rails 3.2.8 app and added:
gem "rmre", "~> 0.0.4"
to this new gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.8'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2'
# 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'
gem "rmre", "~> 0.0.4"
# 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'
Running bundle install yields:
Bundler could not find compatible versions for gem "erubis":
In Gemfile:
rmre (~> 0.0.4) ruby depends on
erubis (~> 2.6.6) ruby
rails (= 3.2.8) ruby depends on
erubis (2.7.0)
I tried commenting out the version numbers and even removing the gems related to asset management. Still, I can't seem to arrive at a combination of gem versions that work here. It's the first time I've run into this sort of situation and I am not sure what else I might do to try out the rmre gem with a version of rails that is at least 3-point-something.
Is there a clever way to search for a workable dependency resolution here? If there is not a gem version configuration that meets the recommended dependencies, is there a least-bad approach to pursue?
Many thanks!
You might try contacting the rmre gem author to see if they would be willing to loosen the dependency restriction, so that it's not tied to such a narrow erubis version. Forward compatibility is part of what gem authors need to maintain if they want their gem to continue to work with the latest versions of rails. – normalocity Nov 2 at 1:31
.
.
Worked.
Download the zip file from the page. Then execute the gem command. Worked for me. Incredible program.

Resources