Logo

HPC @ Uni.lu

High Performance Computing in Luxembourg

FAQ: Setting Locale Failed When Accessing the Cluster

Common error message when you first log on to the cluster:

1
2
3
4
5
6
7
8
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LC_CTYPE = "fr_LU.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

To suppress this message, go onto your ~/.bashrc file and uncomment the following lines:

1
2
3
4
5
6
# enable en_US locale w/ UTF-8 encodings if not already configured
: ${LANG:="en_US.UTF-8"}
: ${LANGUAGE:="en"}
: ${LC_CTYPE:="en_US.UTF-8"}
: ${LC_ALL:="en_US.UTF-8"}
export LANG LANGUAGE LC_CTYPE LC_ALL