envsubst: command not found on Mac OS X 10.8

Andrew picture Andrew · May 13, 2014 · Viewed 53.2k times · Source

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.

Answer

cobberboy picture cobberboy · May 12, 2016
brew install gettext
brew link --force gettext 

This will enable envsubst on OS X, and force it to link properly. It requires homebrew to be installed.