When I run a ruby script(with erb and redcarpet gems), encountered the error.
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
Solved like below, first, uncomment the locale(en_US.UTF8
) from the file.
sudo vi /etc/locale.gen
Then run the command.
sudo locale-gen