I'm getting this attempting to install the contents of the bundler file:
$ sudo gem install bundler
Successfully installed bundler-1.9.7
Parsing documentation for bundler-1.9.7
Installing ri documentation for bundler-1.9.7
Done installing documentation for bundler after 4 seconds
1 gem installed
$ bundle update
Fetching gem metadata from http://rubygems.org/..........
Fetching version metadata from http://rubygems.org/...
Fetching dependency metadata from http://rubygems.org/..
mv: cannot stat ‘/tmp/bundler20150512-25650-nqiprtrake-10.4.2/cache/rake-10.4.2.gem’: No such file or directory
Bundler::GemspecError: Could not read gem at /var/lib/gems/2.1.0/cache/rake-10.4.2.gem. It may be corrupted.
An error occurred while installing rake (10.4.2), and Bundler cannot continue.
Make sure that `gem install rake -v '10.4.2'` succeeds before bundling.
Ubuntu 14.04.1 LTS, works locally inside a Vagrant machine fails like this remotely on EC2.
Any ideas? I'm not a ruby expert, I'm just tearing my hair out here.
I should also mention I can do a
$ sudo gem install rake which will install the correct version of
rake, but then the same command errors out on
i18n and then
json and then ...
I took a look at the Dockerfile and it uses this instruction which appears to be working:
bundle install --path vendor/bundle
Two possibilities of what is going on here: a) a temporary glitch in the Ruby gems system, or b) (more likely) a permission problem. Using
--path vendor/bundle should fix the latter. The latter is also the default for
RAILS_ENV=production, which uses
bundle install --deployment. More info on the deployment flag at http://bundler.io/v1.9/man/bundle-install.1.html#DEPLOYMENT-MODE.