Problem "Failed to generate module xxx" (Solved)

Problem "Failed to generate module xxx" (Solved)

par Emmanuel Nieto Casarrubias,
Number of replies: 0
For those of you that had a problem with the compilation with Quartus in windows where the first error was "Failed to generate module xxx", if you have a warning before similar to the following:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
For solving the problem you need to close Quartus, create two environment variables ,
LC_ALL and LANG with value of C (cap "c")
Then go to control Panel-->Clock and Region-->Change date , time, or number format-->Formats
Change the format to English (United States), apply it, and then you can open Quartus Again

For linux, this should work

sudo locale-gen en_US