Install the Bundler Gem failed on Ubuntu 14.04
bibliotechy opened this issue · 5 comments
Running this on a totally pristine vagrant box, got the following:
TASK: [geerlingguy.ruby | Install the Bundler Gem.] ***************************
failed: [10.10.10.2] => {"cmd": "/usr/local/bin/gem install --no-user-install --no-rdoc --no-ri bundler", "failed": true, "rc": 1}
stderr: ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
msg: ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
FATAL: all hosts have already failed -- aborting
Once I installed zlib1g-dev and recompiled, I got similar errors:
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources.
Once I installed zlib1g-dev
& libssl-dev
and re-"make"d ruby, it worked.
Not sure the best cross-platform way to approach this dependency issue. Happy to make a PR if you have ideas.
Sorry; I haven't yet done any testing with this role on 14.04, but should soon. If you can submit a PR, I can help make it cross-platform. If it's just a matter of installing zlib1g-dev and libssl-dev on 14.04 only, that shouldn't be too difficult to make happen; my geerlingguy.apache
role does/did something similar.
Hi,
I'm getting this same issue on CentOS 6.5. As I am in the process of using your (excellent) module, I will confirm I have things working soon and try and make a PR that is cross-platform.
- M
I'm testing some changes across CentOS 6/7 and Ubuntu 12/14. Hopefully it will fix everything here :)
Fixed!