免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12345
最近访问板块 发新帖
楼主: flyibm
打印 上一主题 下一主题

RHEL 6字符界面下中文显示乱码(附图) [复制链接]

论坛徽章:
0
41 [报告]
发表于 2011-08-13 23:08 |只看该作者
这个真有。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
42 [报告]
发表于 2011-08-13 23:13 |只看该作者
这个,我很怀疑你的dvd的完整性.现在没有环境,应该会有的

论坛徽章:
0
43 [报告]
发表于 2011-08-13 23:40 |只看该作者
我把DVD的内容粘上来,你看一下。

samba.jpg (68.11 KB, 下载次数: 42)

samba.jpg

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
44 [报告]
发表于 2011-08-14 07:46 |只看该作者
回复 43# flyibm


    第一个就是啊,版本高点而已.163的是centos6.0的

论坛徽章:
0
45 [报告]
发表于 2011-08-14 17:34 |只看该作者
好了,已经做出来了。结果粘上来,大家看下还有什么问题没。

[root@linuxserver yum.repos.d]# yum clean all
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Cleaning repos: yum
Cleaning up Everything
[root@linuxserver yum.repos.d]# yum install samba
Loaded plugins: product-id, refresh-packagekit, subscription-manager
Updating Red Hat repositories.
yum                                                      | 4.0 kB     00:00     
yum/primary_db                                           | 2.4 MB     00:00     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package samba.i686 0:3.5.6-86.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package          Arch            Version                  Repository      Size
================================================================================
Installing:
samba            i686            3.5.6-86.el6             yum            5.0 M

Transaction Summary
================================================================================
Install       1 Package(s)

Total download size: 5.0 M
Installed size: 17 M
Is this ok [y/N]: y
Downloading Packages:
samba-3.5.6-86.el6.i686.rpm                              | 5.0 MB     00:01     
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Importing GPG key 0xFD431D51:
Userid : Red Hat, Inc. (release key 2) <security@redhat.com>
Package: redhat-release-server-6Server-6.1.0.2.el6.i686 (@anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1)
From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Importing GPG key 0x2FA658E0:
Userid : Red Hat, Inc. (auxiliary key) <security@redhat.com>
Package: redhat-release-server-6Server-6.1.0.2.el6.i686 (@anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1)
From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : samba-3.5.6-86.el6.i686                                      1/1
yum/productid                                            | 1.7 kB     00:00     
duration: 259(ms)
Installed products updated.

Installed:
  samba.i686 0:3.5.6-86.el6                                                     

Complete!
[root@linuxserver yum.repos.d]# rpm -q samba
samba-3.5.6-86.el6.i686
[root@linuxserver yum.repos.d]# yum list | grep samba
samba.i686                             3.5.6-86.el6                @yum         
samba-client.i686                      3.5.6-86.el6                @anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1
samba-common.i686                      3.5.6-86.el6                @anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1
samba-winbind-clients.i686             3.5.6-86.el6                @anaconda-RedHatEnterpriseLinux-201105101829.i386/6.1
samba-winbind.i686                     3.5.6-86.el6                yum         
sblim-cmpi-samba.i686                  1.0-1.el6                   yum         
[root@linuxserver yum.repos.d]#

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
46 [报告]
发表于 2011-08-14 17:39 |只看该作者
能安装了,说明配置好了.中间有提示key,dvd架设的yum,可以设置gpgcheck=0

论坛徽章:
0
47 [报告]
发表于 2011-08-14 17:50 |只看该作者
呵呵,折腾了好几天,终于好了。谢谢大家的指导和帮助,更谢谢chenyx的及时回复和解答,谢谢。
关于KEY,网上说使用rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release和echo /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release >>/etc/yum.repos.d/yum.repo可以使用,没有试过。

论坛徽章:
0
48 [报告]
发表于 2011-08-14 17:52 |只看该作者
RHEL 5中是安装createrepo工具,RHEL 6中可以不用安装。

论坛徽章:
0
49 [报告]
发表于 2011-08-17 23:18 |只看该作者
呵呵,yum弄好了,现在步入正题,安装zhcon。

论坛徽章:
0
50 [报告]
发表于 2011-08-18 10:19 |只看该作者
昨天晚上和今天早上装了,在编译的时候出错了,试了好几次,都是一样的。请大家给看下是什么问题,谢谢。

[root@linuxserver zhcon-0.2.5]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
Linux detected
./configure: line 1902: test: =: unary operator expected
x86 platform detected, compile with VGA support
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking whether byte ordering is bigendian... no
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for library containing strerror... none required
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for signed... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for long long... yes
checking for long double... yes
checking for wchar_t... yes
checking for wint_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking whether printf() supports POSIX/XSI format strings... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for stdint.h... (cached) yes
checking for SIZE_MAX... 4294967295U
checking for stdint.h... (cached) yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... /bin/sh: ./config.rpath: No such file or directory
done
checking for ptrdiff_t... yes
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for asprintf... yes
checking for fwprintf... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for snprintf... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for wcslen... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking whether _snprintf is declared... no
checking whether _snwprintf is declared... no
checking whether feof_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether getc_unlocked is declared... yes
checking for iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... no
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... (cached) yes
checking for inline... (cached) inline
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for memmove... yes
checking for memset... yes
checking for strchr... yes
checking for forkpty in -lutil... yes
checking for main in -lcurses... no
checking for main in -ldl... yes
checking for main in -lpth... no
checking for main in -limmclient... no
checking for main in -limm_server... no
checking gpm.h usability... no
checking gpm.h presence... no
checking for gpm.h... no
checking for main in -lgpm... no
checking ggi/ggi.h usability... no
checking ggi/ggi.h presence... no
checking for ggi/ggi.h... no
checking for main in -lggi... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/zhcon.1
config.status: creating debian/Makefile
config.status: creating tools/Makefile
config.status: creating font/Makefile
config.status: creating input/Makefile
config.status: creating src/Makefile
config.status: creating src/display/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands

Configuration:
    Target system:             i686-pc-linux-gnu
    Source code location:      .
    C++ Compiler:              g++
    C++ Compiler flags:         -funsigned-char -O2 -march=i686 -DNDEBUG -Wall
    C   Compiler:              gcc
    C   Compiler flags:         -funsigned-char -O2 -march=i686 -DNDEBUG -Wall
    VGA support:               yes
    gpm moues support:         no
    libggi support:            no
    unicon support:            no
    zhcon binary dir:          /usr/local/bin
    zhcon files dir:           /usr/local/lib/zhcon

Config complete, now type make to build zhcon.
Good Luck!
[root@linuxserver zhcon-0.2.5]# make
make  all-recursive
make[1]: Entering directory `/usr/zhcon-0.2.5'
Making all in src
make[2]: Entering directory `/usr/zhcon-0.2.5/src'
Making all in display
make[3]: Entering directory `/usr/zhcon-0.2.5/src/display'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fbdev.o -MD -MP -MF ".deps/fbdev.Tpo" -c -o fbdev.o fbdev.cpp; \
        then mv -f ".deps/fbdev.Tpo" ".deps/fbdev.Po"; else rm -f ".deps/fbdev.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fblinear15.o -MD -MP -MF ".deps/fblinear15.Tpo" -c -o fblinear15.o fblinear15.cpp; \
        then mv -f ".deps/fblinear15.Tpo" ".deps/fblinear15.Po"; else rm -f ".deps/fblinear15.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fblinear16.o -MD -MP -MF ".deps/fblinear16.Tpo" -c -o fblinear16.o fblinear16.cpp; \
        then mv -f ".deps/fblinear16.Tpo" ".deps/fblinear16.Po"; else rm -f ".deps/fblinear16.Tpo"; exit 1; fi
fblinear16.cpp: In member function ‘virtual void FBLinear16::RevRect(int, int, int, int)’:
fblinear16.cpp:89: 警告:‘dest32’上的运算结果可能是未定义的
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fblinear24.o -MD -MP -MF ".deps/fblinear24.Tpo" -c -o fblinear24.o fblinear24.cpp; \
        then mv -f ".deps/fblinear24.Tpo" ".deps/fblinear24.Po"; else rm -f ".deps/fblinear24.Tpo"; exit 1; fi
fblinear24.cpp: In member function ‘virtual void FBLinear24::RevRect(int, int, int, int)’:
fblinear24.cpp:139: 警告:‘dest32’上的运算结果可能是未定义的
fblinear24.cpp:140: 警告:‘dest32’上的运算结果可能是未定义的
fblinear24.cpp:141: 警告:‘dest32’上的运算结果可能是未定义的
fblinear24.cpp:144: 警告:‘dest32’上的运算结果可能是未定义的
fblinear24.cpp:146: 警告:‘dest16’上的运算结果可能是未定义的
fblinear24.cpp:151: 警告:‘dest16’上的运算结果可能是未定义的
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fblinear32.o -MD -MP -MF ".deps/fblinear32.Tpo" -c -o fblinear32.o fblinear32.cpp; \
        then mv -f ".deps/fblinear32.Tpo" ".deps/fblinear32.Po"; else rm -f ".deps/fblinear32.Tpo"; exit 1; fi
fblinear32.cpp: In member function ‘virtual void FBLinear32::RevRect(int, int, int, int)’:
fblinear32.cpp:77: 警告:‘dest32’上的运算结果可能是未定义的
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fblinear4.o -MD -MP -MF ".deps/fblinear4.Tpo" -c -o fblinear4.o fblinear4.cpp; \
        then mv -f ".deps/fblinear4.Tpo" ".deps/fblinear4.Po"; else rm -f ".deps/fblinear4.Tpo"; exit 1; fi
fblinear4.cpp: In member function ‘virtual void FBLinear4::FillRect(int, int, int, int, int)’:
fblinear4.cpp:75: 错误:‘memset’在此作用域中尚未声明
make[3]: *** [fblinear4.o] 错误 1
make[3]: Leaving directory `/usr/zhcon-0.2.5/src/display'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/usr/zhcon-0.2.5/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/zhcon-0.2.5'
make: *** [all] 错误 2
[root@linuxserver zhcon-0.2.5]# make install
Making install in src
make[1]: Entering directory `/usr/zhcon-0.2.5/src'
Making install in display
make[2]: Entering directory `/usr/zhcon-0.2.5/src/display'
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fblinear4.o -MD -MP -MF ".deps/fblinear4.Tpo" -c -o fblinear4.o fblinear4.cpp; \
        then mv -f ".deps/fblinear4.Tpo" ".deps/fblinear4.Po"; else rm -f ".deps/fblinear4.Tpo"; exit 1; fi
fblinear4.cpp: In member function ‘virtual void FBLinear4::FillRect(int, int, int, int, int)’:
fblinear4.cpp:75: 错误:‘memset’在此作用域中尚未声明
make[2]: *** [fblinear4.o] 错误 1
make[2]: Leaving directory `/usr/zhcon-0.2.5/src/display'
make[1]: *** [install-recursive] 错误 1
make[1]: Leaving directory `/usr/zhcon-0.2.5/src'
make: *** [install-recursive] 错误 1
[root@linuxserver zhcon-0.2.5]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP