无法通过brew安装hiera


1

我在macOS High Sierra

第一个命令(http://macappstore.org/hiera/

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

看起来不错

第二个命令导致错误:

brew install caskroom/cask/brew-cask

但是,据我所知,现在不需要它。

第3个命令导致错误:

brew cask install hiera
==> Satisfying dependencies
==> Downloading https://downloads.puppetlabs.com/mac/hiera-1.3.4.dmg
Already downloaded: /Users/anarinsky/Library/Caches/Homebrew/Cask/hiera--1.3.4.dmg
==> Verifying checksum for Cask hiera
==> Installing Cask hiera
==> Running installer for hiera; your password may be necessary.
==> Package installers may write to any location; options such as -- 
appdir are ignored.
Password: 
==> installer: Package name is hiera-1.3.4
==> installer: Installing at base path /
==> installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
==> Purging files for version 1.3.4 of Cask hiera
Error: Command failed to execute!
==> Failed command:
/usr/bin/sudo -E -- /usr/sbin/installer -pkg 
/usr/local/Caskroom/hiera/1.3.4/hiera-1.3.4.pkg -target /

==> Standard Output of failed command:
installer: Package name is hiera-1.3.4
installer: Installing at base path /
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
==> Standard Error of failed command:
==> Exit status of failed command:
#<Process::Status: pid 10228 exit 1>

我怀疑在基地安装path / 不起作用。

Answers:


1

简短的回答

请试试brew cask install puppet-agent。Hiera包括在内。

更多细节

我尝试安装了手动安装cask配方的https://downloads.puppetlabs.com/mac/hiera-1.3.4.dmg文件并收到以下警告:

此程序包与此版本的OS X不兼容,可能无法>安装。

安装此软件包可能会损坏您的系统,安装可能会失败。要停止程序和安装,请单击“取消>安装”。

我做了一些谷歌搜索,发现1.3.4很老了。

来自:https//tickets.puppetlabs.com/browse/HI-533

Hiera 1.3.4是旧的(> 2年)。比OSx 10.11.6早得多。有>以后发布的hiera,“

来自:https//docs.puppet.com/hiera/3.1/

要开始使用Hiera,您需要执行以下所有操作:

确保已安装。Hiera附带Puppet代理,所以如果你还没有安装> puppet-agent软件包。(Linux,Windows,OS X.)

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.