我正在尝试按照此链接中的说明设置运行Liberty配置文件服务器的虚拟机,其中部署了示例应用程序:https://developer.ibm.com/wasdev/docs/getting-started-chef-cookbooks-liberty-profile/
但是,我使用EC2实例作为虚拟机,而不是使用vagrant。当我ssh并运行" sudo chef-client"时,我收到以下错误在虚拟机中。
Starting Chef Client, version 12.5.1
resolving cookbooks for run list: ["apt", "starter::JSPExamples"]
Synchronizing Cookbooks:
- starter (1.0.0)
- apt (2.9.2)
- application (5.0.0)
- poise-service (1.0.2)
- application_wlp (0.2.0)
- wlp (0.3.0)
- java (1.36.0)
- poise (2.4.0)
Compiling Cookbooks...
[2015-11-12T10:20:23+00:00] WARN: Chef::Mixin::LanguageIncludeRecipe is deprecated, use Chef::DSL::IncludeRecipe instead.
[2015-11-12T10:20:23+00:00] WARN: Called from: /var/chef/cache/cookbooks/application_wlp/providers/wlp_application.rb:20:in `class_from_file'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/from_file.rb:42:in `class_eval'
/opt/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/from_file.rb:42:in `class_from_file'
=======================================================================
Recipe Compile Error in /var/chef/cache/cookbooks/application_wlp/resources/wlp_application.rb
=======================================================================
LoadError
---------
cannot load such file -- ApplicationCookbook
请帮助我。
答案 0 :(得分:1)
应用程序食谱最近发布了一个新的主要版本(5.0.0),它不向后兼容早期版本。您所关注的教程已过期,需要更新。在短期内,您可以通过从https://supermarket.chef.io/明确下载应用程序食谱的最后4.x版本来解决您的问题。