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

查看:166
本文介绍了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软件包中.

因此,您可以使用标准构建工具(例如makehomebrew)自行编译它.

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屋!

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