日期:2014-05-16  浏览次数:20759 次

chinaunix刚回来求助redhat中文乱码。
网上很多方法尝试都没有成功呢,贴一个错误,希望有牛帮忙分析下。


我用VMware Workstation装了rhel-5.1-server-i386-dvd.iso 始终无法解决中文乱码问题
运行
rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm
rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
之后
[root@localhost teee]# fc-cache -fv
/usr/share/fonts: caching, 0 fonts, 8 dirs
/usr/share/fonts/ISO8859-2: caching, 0 fonts, 1 dirs
/usr/share/fonts/ISO8859-2/75dpi: caching, 0 fonts, 0 dirs
/usr/share/fonts/bitmap-fonts: caching, 31 fonts, 0 dirs
/usr/share/fonts/bitmap-fonts: failed to write cache
/usr/share/fonts/bitstream-vera: caching, 10 fonts, 0 dirs
/usr/share/fonts/bitstream-vera: failed to write cache
/usr/share/fonts/chinese: caching, 0 fonts, 2 dirs
/usr/share/fonts/chinese/TrueType: caching, 2 fonts, 0 dirs
/usr/share/fonts/chinese/misc: caching, 1 fonts, 0 dirs
/usr/share/fonts/default: caching, 0 fonts, 2 dirs
/usr/share/fonts/default: failed to write cache
/usr/share/fonts/default/Type1: caching, 35 fonts, 0 dirs
/usr/share/fonts/default/Type1: failed to write cache
/usr/share/fonts/default/ghostscript: caching, 8 fonts, 0 dirs
/usr/share/fonts/default/ghostscript: failed to write cache
/usr/share/fonts/dejavu-lgc: caching, 21 fonts, 0 dirs
/usr/share/fonts/dejavu-lgc: failed to write cache
/usr/share/fonts/liberation: caching, 12 fonts, 0 dirs
/usr/share/fonts/liberation: failed to write cache
/usr/share/fonts/zh_TW: caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_TW/TrueType: caching, 1 fonts, 0 dirs
/usr/share/X11/fonts/Type1: caching, 29 fonts, 0 dirs
/usr/share/X11/fonts/Type1: failed to write cache
/usr/share/X11/fonts/OTF: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning unwritable cache directory
fc-cache: failed
请问什么原因呢?


------解决方案--------------------
下载安装中文语言包。
然后设置环境变量。