perl: warning: Setting locale failed.
Posted: 2019/09/15 20:45:17
Hi,
I am using centos release CentOS release 6.9 (Final). For the past 15 days I am getting the following error.
I have tried several solutions for this from different forums
1. Creating a /etc/default/locale file with
cat /etc/default/locale
2. Adding following lines to /etc/environment
3.
4.
5. yum update
None of the above approaches seem to work.
My current gcc version is
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I am a bioinformatician and several of my programs like fastq, bwa, and samtools are not working if this issue is not resolved. These tools work fine if I operate as root.
I will appreciate any help as I can not understand how to resolve this.
Thanks in advance !!
I am using centos release CentOS release 6.9 (Final). For the past 15 days I am getting the following error.
Code: Select all
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US.utf8",
LC_ALL = "en_US.utf8",
LC_TYPE = "en_US.utf8",
LANG = "en_US.utf8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
[kalyani_patankar@ngs 135-2019-26]$ cat /etc/centos-release
1. Creating a /etc/default/locale file with
cat /etc/default/locale
Code: Select all
LANG=en_US.utf8
LC_ALL=en_US.utf8
Code: Select all
LANGUAGE=en_US.utf8
LC_ALL=en_US.utf8
LANG=en_US.utf8
LC_TYPE=en_US.utf8
Code: Select all
yum reinstall glibc-common
Code: Select all
localedef -i en_US -f UTF-8 en_US.UTF-8
localedef -i en_US -f UTF-8 en_US.UTF-8
localedef -v -c -i en_US -f UTF-8 en_US.UTF-8
localedef -c -i en_US -f UTF-8 en_US.UTF-8
None of the above approaches seem to work.
My current gcc version is
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I am a bioinformatician and several of my programs like fastq, bwa, and samtools are not working if this issue is not resolved. These tools work fine if I operate as root.
I will appreciate any help as I can not understand how to resolve this.
Thanks in advance !!