bash - envsubst : command not found on Mac OS X 10. 8

标签 bash shell terminal sh command-line-interface

当我尝试运行包含 envsubst 命令的脚本时,出现此错误。在线查看,这似乎是一个标准的 bash 命令,所以我不确定要安装什么才能让它工作。

最佳答案

brew install gettext
brew link --force gettext 

这将在 OS X 上启用 envsubst,并强制它正确链接。它需要安装自制软件。

关于bash - envsubst : command not found on Mac OS X 10. 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23620827/

相关文章:

linux - 发送电子邮件 : Linux Script and Array

bash - 在 bash 大括号扩展中更改分隔符/delim

python - 为什么 shell=True 和 shell=False 做同样的事情?

python - "How to Fix:TypeError __init() got an unexpected keyword argument ' max_value' 与进度条相关

bash - 如何在 Unix 中同时写入文件和打印到终端?

linux - Bash - 将命令行参数保存到输出文件中

json - 如何将两个简单的 JSON 数组与 JQ 合并在一起

mysql - 如何在 mac OSX 上更改 mysql $PATH?

linux - Shell 从当前字母中减去一个字母

shell - 将 shell 命令的输出直接插入到 tmux Pane 中