/
Compilation error on Linux: locale::facet::_S_create_c_locale name not valid
Compilation error on Linux: locale::facet::_S_create_c_locale name not valid
Problem
You may face the following error during compilation on Linux:
ERROR: locale::facet::_S_create_c_locale name not valid
1 error(s)
Code preprocessing failed!
(error code: 0)
Solution
This error appears due to the LC_ALL env variable is not set by default.
You can run the following command from your Querix user to set the variable:
echo -e "export LANG=en_US.UTF-8\nexport LC_ALL=en_US.UTF-8">>~/.bashrc && source ~/.bashrc