代码之家  ›  专栏  ›  技术社区  ›  Jaw. M.

厨师-在现有食谱上生成BerksFile

  •  0
  • Jaw. M.  · 技术社区  · 7 年前

    berks cookbook name_of_my_cookbook

    /opt/chef/embedded/lib/ruby/site_ruby/2.3.0/rubygems.rb:271: in find_spec_for_exe: can't find gem berkshelf (>= 0.a) (Gem::GemNotFoundException) from /opt/chef/embedded/lib/ruby/site_ruby/2.3.0/rubygems.rb:299:in activate_bin_path from /usr/local/bin/berks:23:in

    我试图通过 gem install berkshelf ERROR: Error installing berkshelf: There are no versions of solve (~> 4.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for? solve requires Ruby version >= 2.1.0. The current ruby version is .

    我没有其他办法来解决这个问题。我是个新手,所以我很感谢你的帮助。

    1 回复  |  直到 7 年前
        1
  •  1
  •   coderanger    7 年前

    没有理由使用 berks cookbook gem install berkshelf chef-client ChefDK ,所以先解决这个问题。如果你只是想要一个标准的BerksFile,它是:

    source "https://supermarket.chef.io/"
    metadata
    
    推荐文章