无法加载berkshelf

问题描述 投票:1回答:1

我正在研究厨师项目,并尝试运行厨房列表命令。不幸的是我得到了无法加载或激活berkshelf。我给了命令gem install berkshelf。我正在运行Ubuntu 18.04并安装了chefdk。谢谢。

错误日志:

kitchen list
!!!!!! The `berkshelf' gem is missing and must be installed or cannot be properly activated. Run `gem install berkshelf` or add the following to your Gemfile if you are using Bundler: `gem 'berkshelf'`.
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::UserError
>>>>>> Message: Could not load or activate Berkshelf (Unable to activate sawyer-0.8.1, because addressable-2.6.0 conflicts with addressable (>= 2.3.5, < 2.6))
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
ruby chef berkshelf
1个回答
0
投票

我给了命令gem install berkshelf

确保您使用的是Gemfile并在其中包含berkshelf。然后让bundler安装你的rubygems,一旦完成,尝试在bundler下使用相同的命令。例如。:

$ bundle exec kitchen list

甚至

$ bundle exec berks --version
© www.soinside.com 2019 - 2024. All rights reserved.