Troubleshooting Error with rails activeadmin gem Installation.


Ever faced this error below with gem activeadmin installation in rails 5

Your bundle requires gems that depend on each other, creating
an infinite loop. Please remove gem 'meta_search' and try
again.


Include this line in your Gemfile
gem 'activeadmin', github: 'activeadmin'
update your bundle doing this.
bundle update 
This error will appear in your console







Fetching https://github.com/activeadmin/activeadmin.git
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem
"actionpack":
In Gemfile:
activeadmin was resolved to 1.0.0.pre4, which depends on
formtastic (~> 3.1) was resolved to 3.1.4, which
depends on
actionpack (>= 3.2.13)

activeadmin was resolved to 1.0.0.pre4, which depends on
inherited_resources (~> 1.6) was resolved to 1.6.0,
which depends on
actionpack (< 5, >= 3.2)

rails (~> 5.0.1) was resolved to 5.0.1, which depends on
actionpack (= 5.0.1)

rails (~> 5.0.1) was resolved to 5.0.1, which depends on
actionpack (= 5.0.1)

rails (~> 5.0.1) was resolved to 5.0.1, which depends on
actionpack (= 5.0.1)

rails (~> 5.0.1) was resolved to 5.0.1, which depends on
actionpack (= 5.0.1)

Solution:

Include this in your Gemfile:

gem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources'
Again update bundle
bundle update

Problem will have been solved by now if any other problem occurs
try removing Gemfile.lock
rm Gemfile.lock
from your Rails app directory
 and update bundle again.
bundle update

Tags

Ruby  RoR  ruby  activeadmin