Reputation: 355
bundle install
This works perfectly fine. But when I do
bundle exec rake db:migrate
It says
Could not find byebug-6.0.2 in any of the sources
Run `bundle install` to install missing gems.
Upvotes: 2
Views: 793
Reputation: 78
I just troubleshat this same problem. I finally tried removing byebug and was offered a choice of byebug_6.0.2
or byebug_8.1.0
. Removing the earlier version didn’t do it so I removed the other as well. I then reinstalled using
gem install byebug
That gave me another failed migrate, this time blaming debug_inspector. I ran
gem install debug_inspector
After that I was able to run rake db:migrate
as expected.
Upvotes: 0
Reputation: 2166
From comments, I saw that you use 2 different types of commands, 1 with sudo
and 1 without.
Problem is: sudo
is another user (root user), so what you install by sudo
may not be applied for other users and vice versa.
The solution I could think of is to use all sudo
commands, since your current user seems not to have access to PG.
sudo bundle install
sudo bundle exec rake db:migrate
Upvotes: 1