rake db:create is not working in Ubuntu

716 views Asked by At

I am currently tring to run the rake db:create command on Ubuntu Xenial 16.04.01 but I am getting the error below.

Your bundle is locked to activesupport (5.0.0.1), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of activesupport (5.0.0.1) has removed it. You'll need to update your bundle to a different version of activesupport (5.0.0.1) that hasn't been removed in order to install.

I have tried running the command below to try to get the new version of active support but it is still not working..

sudo apt-get update
sudo apt-get install ruby-activesupport

Any help or advice would be much appreciated.

1

There are 1 answers

1
31piy On BEST ANSWER

sudo apt-get update has nothing to do with ruby gems.

From the error, it seems like your Gemfile.lock has the version 5.0.0.1 of ActiveSupport, but it isn't declared in your Gemfile.

Can you try to add gem activesupport in your Gemfile, and then run bundle install from within the project folder? This should solve your problem.