BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly

Majid Zandi picture Majid Zandi · Oct 13, 2014 · Viewed 109.6k times · Source

When I run mongo, I get the warning:

Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly.

Answer

Edson picture Edson · Oct 24, 2014

you can use the below command on terminal

export LC_ALL=C