When I try to start cap production deploy I get the following error.
DEBUG [dc362284] Bundler::GemNotFound: Could not find json-1.8.1.gem for installation DEBUG [dc362284] An error occurred while installing json (1.8.1), and Bundler cannot continue. DEBUG [dc362284] Make sure that `gem install json -v '1.8.1'` succeeds before bundling.
Perhaps it is important to note that this deployment worked than I upgraded to Ruby 2.1.0 to remove the encoding error. I updated locally, which worked great. I ran rvm install 2.1.0 and rvm use 2.1.0 and then modified my .ruby-version file to reflect this Ruby update.
The bundle install command works locally, but produces the same error above when I ssh on the target server and run this command.
If I run the gem list , I see this in the gem list.
... jquery-rails (3.0.4) json (1.8.1) less (2.3.2) ...
If I try the recommended solution gem install json -v '1.8.1' Locally and on the target server, I get the following output:
Building native extensions. This could take a while... Successfully installed json-1.8.1 Parsing documentation for json-1.8.1 Done installing documentation for json after 0 seconds 1 gem installed
So it seems that the stone is installed, right? Why is this happening? How can i solve this? Any help would be greatly appreciated.
ruby-on-rails gem bundler capistrano
Thomas Jan 13 '14 at 15:31 2014-01-13 15:31
source share