envsubst:在Mac OS X 10.8上找不到命令 [英] envsubst: command not found on Mac OS X 10.8
问题描述
当我尝试运行包含envsubst命令的脚本时,出现此错误.从网上看,这似乎是标准的bash命令,因此我不确定要安装什么才能使其正常工作.
When I try to run a script that contains the envsubst command, I get this error. Looking online, this seems to be a standard bash command, so I am not sure what to install in order to get it to work.
推荐答案
@cobberboy的答案更正确.支持他.
@cobberboy 's anwer is more correct. upvote him.
brew install gettext
brew link --force gettext
以下是我的旧答案:
envsubst
包含在gettext
软件包中.
因此,您可以使用标准构建工具(例如make
或homebrew
)自行编译它.
Therefore you may compile it by your own, using standard build tools such as make
or using homebrew
.
但是,在MacOS中安装gettext
时似乎没有什么问题.
有关详细信息,请参见以下URL:如何在MacOS X上安装gettext
However, it seems to have little issue when installing gettext
in MacOS.
See following url for details: How to install gettext on MacOS X
这篇关于envsubst:在Mac OS X 10.8上找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!