I am running the following stack:
on ubuntu running apache
And I am getting the following error:
Could not find json-1.8.1 in any of the sources (Bundler::GemNotFound)
When I look for json as follows:
$ gem list | grep json
json (1.8.1)
multi_json (1.9.2)
It is there but for some reason, the message from Passenger is as follows:
Ruby (Rack) application could not be started
Error message: Could not find json-1.8.1 in any of the sources (Bundler::GemNotFound) Exception class: PhusionPassenger::UnknownError
For me, this problem was caused by Spring (the Rails quick-loader) not picking up Gem/path changes. I was executing rails generate rspec:install
and getting a json-1.8.1 not found.
I probably executed thirty different commands -- any of which probably had an impact to the final resolution -- but eventually doing a bin/spring stop
allowed further rails
commands to work because they restarted the Spring server with an updated Gem-list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With