Your bundle is locked to rest_client (1.8.3), 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 rest_client (1.8.3) has removed it. You'll need to update your bundle to a different version of rest_client (1.8.3) that hasn't been removed in order to install.
Asked
Active
Viewed 1,126 times
-2

Holger Just
- 52,918
- 14
- 115
- 123

Shahriar Khan
- 31
- 8
-
try `bundle update` or remove the Gemfile.lock and do `bundle install`. – Aakanksha Oct 24 '17 at 08:56
-
I tried everything. nothing happens. when i try to update it shows: Could not find gem 'rest_client' in any of the gem sources listed in your Gemfile or in gems cached in vendor/cache. When i try to install this gem this error shown: ERROR: Could not find a valid gem 'rest_client' (= 1.8.3) in any repository ERROR: Possible alternatives: rest-client I remove gemfile.lock and use bundle install same error appear: Could not find gem 'rest_client' in any of the gem sources listed in your Gemfile or in gems cached in vendor/cache. – Shahriar Khan Oct 24 '17 at 09:28
-
[`gem install rest-client`](https://rubygems.org/gems/rest-client). – Sebastián Palma Oct 24 '17 at 09:52
-
not working. I just remove all of ruby version. re install ruby. remove project directory again clone this. but result is same. – Shahriar Khan Oct 24 '17 at 11:02
-
How does your `Gemfile` look like? Is there a line like `gem 'rest_client'`? – spickermann Oct 24 '17 at 11:12
1 Answers
2
rest_client
is deprecated. That's why your bundler couldn't find it in any source. Either you have to install it from git or you have to use rest-client
which is in the source (RubyGems.org).
But your Gemfile.lock file has rest_client
locked. Follow these steps:
- Remove your
Gemfile.lock
file. - Remove
rest_client
from yourGemfile
. - Add
gem 'rest-client'
to yourGemfile
. bundle install
.
Your problem is solved hopefully.

Rifatul Islam Chayon
- 462
- 4
- 7