gpt4 book ai didi

Vagrant & Chef:未初始化的常量 Chef::Resource::LWRPBase

转载 作者:行者123 更新时间:2023-12-02 04:05:40 25 4
gpt4 key购买 nike

当我尝试运行“vagrant provision”时出现此错误:

Running chef-solo...
stdin: is not a tty
[2014-05-15T12:21:41+00:00] INFO: *** Chef 10.14.2 ***
[2014-05-15T12:21:41+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[build-essential]", "recipe[vim]", "recipe[git]", "recipe[mysql::server]", "recipe[apache2]", "recipe[php]", "recipe[vhosts]", "recipe[apache2::mod_php5]", "recipe[php::module_mysql]", "recipe[php::module_apc]", "recipe[php::module_curl]", "recipe[phpmyadmin]", "recipe[phpredis]", "recipe[redis-package::server]", "recipe[nodejs]", "recipe[composer]", "recipe[couchbase::server]", "recipe[symfony2_stuff]"] from JSON
[2014-05-15T12:21:41+00:00] INFO: Run List is [recipe[apt], recipe[build-essential], recipe[vim], recipe[git], recipe[mysql::server], recipe[apache2], recipe[php], recipe[vhosts], recipe[apache2::mod_php5], recipe[php::module_mysql], recipe[php::module_apc], recipe[php::module_curl], recipe[phpmyadmin], recipe[phpredis], recipe[redis-package::server], recipe[nodejs], recipe[composer], recipe[couchbase::server], recipe[symfony2_stuff]]
[2014-05-15T12:21:41+00:00] INFO: Run List expands to [apt, build-essential, vim, git, mysql::server, apache2, php, vhosts, apache2::mod_php5, php::module_mysql, php::module_apc, php::module_curl, phpmyadmin, phpredis, redis-package::server, nodejs, composer, couchbase::server, symfony2_stuff]
[2014-05-15T12:21:41+00:00] INFO: Starting Chef Run for precise64
[2014-05-15T12:21:41+00:00] INFO: Running start handlers
[2014-05-15T12:21:41+00:00] INFO: Start handlers complete.

================================================================================
Recipe Compile Error in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/build-essential/libraries/xcode_command_line_tools.rb
================================================================================

NameError
---------
uninitialized constant Chef::Resource::LWRPBase

Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/build-essential/libraries/xcode_command_line_tools.rb:21

Relevant File Content:
----------------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/build-essential/libraries/xcode_command_line_tools.rb:

1: #
2: # Cookbook Name:: build-essential
3: # Library:: xcode_command_line_tools
4: #
5: # Copyright 2014, Chef Software, Inc.
6: #
7: # Licensed under the Apache License, Version 2.0 (the "License");
8: # you may not use this file except in compliance with the License.
9: # You may obtain a copy of the License at

[2014-05-15T12:21:42+00:00] ERROR: Running exception handlers
[2014-05-15T12:21:42+00:00] ERROR: Exception handlers complete
[2014-05-15T12:21:42+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-05-15T12:21:42+00:00] FATAL: NameError: uninitialized constant Chef::Resource::LWRPBase
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.

已安装 Xcode 和命令行工具。我已经更新了 Chef 和 Vagrant - 有什么想法吗?

盒子:https://bitbucket.org/creativebrains/box

我搜索术语“LWRPBase”,但没有找到任何答案。

最佳答案

这个 stackoverflow 线程帮助我使用最新的 Chef 版本运行我的 Vagrantfile(这就是问题所在):

How to control the version of Chef that Vagrant uses to provision VMs?

关于Vagrant & Chef:未初始化的常量 Chef::Resource::LWRPBase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23678185/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com