yeah, the chef-11 rubygems is ancient and probably doesn't support that option.
you can do: `/opt/chef/embedded/bin/gem update --system` which will update to 2.4.5, but then you'll have all the fun of recompiling all of the native gems in the bundle and any that you've chef_gem installed (it'll complain about the need to 'gem pristine' various gems).
i'd advise getting off of chef-11 ASAP. as issues with the old rubygems become worse we won't be able to solve them by rolling it forwards in chef-11.
we're going to look at doing the next release of chef-11 with the maximum rubygems bump that we can make which may make it more maintainable, but chef-11 may fairly quickly run out of usable runway.
On Wed Dec 17 14:24:50 2014, Tiago Cruz wrote:
Thanks Lamont!
Where should I pass this option?
~]# /opt/opscode/embedded/bin/gem install knife-ec-backup
--minimal-deps
ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --minimal-deps
~]# /opt/opscode/embedded/bin/gem install --minimal-deps
knife-ec-backup
ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --minimal-deps
~]# /opt/opscode/embedded/bin/gem --minimal-deps install
knife-ec-backup
ERROR: Invalid option: --minimal-deps. See 'gem --help'.
Thanks a lot!
On Wed, Dec 17, 2014 at 8:10 PM, Lamont Granquist < " target="_blank">
<mailto: " target="_blank"> >> wrote:
On Wed Dec 17 08:04:22 2014, Tiago Cruz wrote:
I also tried to use the knife-ec-backup, but I can't install:
...
# /opt/opscode/embedded/bin/gem install knife-ec-backup
ERROR: Error installing knife-ec-backup:
ohai requires Ruby version >= 2.0.0.
...
you should be able to fix that by adding --minimal-deps
--
-- Tiago Cruz
Archive powered by MHonArc 2.6.16.