envsubst:在 Mac OS X 10.8 上找不到命令 [英] envsubst: command not found on Mac OS X 10.8

查看:33
本文介绍了envsubst:在 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 似乎没有什么问题.详情请参阅以下网址:如何在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆