System environment:
[Root@host conf]# More/etc/issue
Red Hat Enterprise Linux Server Release 5 (Tikanga)
Kernel \ r \m
Problem phenomenon:
[root@ha]# Locale
Locale:cannot set LC_CTYPE to default locale:no such file or directory
Locale:cannot set Lc_messages to default locale:no such file or directory
Locale:cannot set Lc_all to default locale:no such file or directory
Lang=en_us. UTF-8
Lc_ctype= "en_US. UTF-8 "
Lc_numeric= "en_US. UTF-8 "
Lc_time= "en_US. UTF-8 "
Lc_collate= "en_US. UTF-8 "
Lc_monetary= "en_US. UTF-8 "
Lc_messages= "en_US. UTF-8 "
Lc_paper= "en_US. UTF-8 "
Lc_name= "en_US. UTF-8 "
Lc_address= "en_US. UTF-8 "
Lc_telephone= "en_US. UTF-8 "
Lc_measurement= "en_US. UTF-8 "
Lc_identification= "en_US. UTF-8 "
Lc_all=en_us. UTF-8
Enter the locale command, appear as shown above, at the same time, the system text file encoding for no reason to change, what reasons?
Solve:
This problem occurs in the Redhat system, in the final analysis, because the system is missing the corresponding GLIBC package caused, this problem is due to the lack of glibc-common, can be viewed at this time the system is not/usr/lib/locale/ Locale-archive the file.
According to the system version, install the Glibc-commo package to solve the problem, I installed the version is: glibc-common-2.5-12.i386.rpm.
After the installation is complete, the problem is solved, after locale, the display is normal.
This article is from the "Technology Achievement Dream" blog, please be sure to keep this source http://ixdba.blog.51cto.com/2895551/526447