Я учусь на шеф-повара, и я застрял здесь, пытаясь установить пакет httpd. У меня есть простой рецепт установки пакета httpd в Mac OS. Я установил ChefDK.
webserver.rb
package 'httpd'
когда я запускаю chef-apply webserver.rb
, выдает ошибки:
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of brew info --json=v1 httpd ----
STDOUT:
STDERR: Error: No available formula with the name "httpd"
---- End output of brew info --json=v1 httpd ----
Ran brew info --json=v1 httpd returned 1
Resource Declaration:
---------------------
# In webserver.rb
1: package 'httpd'
Compiled Resource:
------------------
# Declared in webserver.rb:1:in `run_chef_recipe'
homebrew_package("httpd") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
package_name "httpd"
declared_type :package
cookbook_name "(chef-apply cookbook)"
recipe_name "(chef-apply recipe)"
end
Может кто-нибудь сказать мне, что я здесь пропустил. Спасибо.