亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
12下一頁
最近訪問板塊 發(fā)新帖
查看: 3521 | 回復: 11
打印 上一主題 下一主題

在終端和圖形下都能顯示中文,但在純命令下卻是亂碼 [復制鏈接]

論壇徽章:
0
跳轉到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-12-26 17:39 |只看該作者 |倒序瀏覽
我在在終端和圖形下創(chuàng)建了文件,文件名是中文的,也都能顯示中文,但在純命令下卻是亂碼

論壇徽章:
0
2 [報告]
發(fā)表于 2009-12-26 19:33 |只看該作者
把你的系統(tǒng)語言環(huán)境修改下

論壇徽章:
1
操作系統(tǒng)版塊每日發(fā)帖之星
日期:2015-07-11 22:20:00
3 [報告]
發(fā)表于 2009-12-26 20:16 |只看該作者
真實終端 tty 本身就不支持復雜字符。
就算你編碼設置正確也一樣。

如果你需要在tty下查看中文,你需要安裝 zhcon 這個支持包。
并且先運行命令
# zhcon

論壇徽章:
0
4 [報告]
發(fā)表于 2009-12-27 11:07 |只看該作者
我下載了zhcon包,編譯安裝時出:
[root@localhost 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++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
信賴性好嚴重!

論壇徽章:
0
5 [報告]
發(fā)表于 2009-12-27 11:12 |只看該作者
新手上路 多多關照。。。。。。!

論壇徽章:
0
6 [報告]
發(fā)表于 2009-12-27 11:24 |只看該作者
FOR GCC:
yum -y install gcc

FOR C++/G++
yum -y install gcc-c++ compat-gcc-32 compat-gcc-32-c++

完成后終于可以./configure了

論壇徽章:
0
7 [報告]
發(fā)表于 2009-12-27 11:27 |只看該作者
嗯。學習了!

論壇徽章:
0
8 [報告]
發(fā)表于 2009-12-27 11:34 |只看該作者
Config complete, now type make to build zhcon.
Good Luck!
[root@localhost zhcon-0.2.5]# make
make  all-recursive
make[1]: Entering directory `/root/DownSoft/zhcon/zhcon-0.2.5'
Making all in src
make[2]: Entering directory `/root/DownSoft/zhcon/zhcon-0.2.5/src'
Making all in display
make[3]: Entering directory `/root/DownSoft/zhcon/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
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fblinear8.o -MD -MP -MF ".deps/fblinear8.Tpo" -c -o fblinear8.o fblinear8.cpp; \
        then mv -f ".deps/fblinear8.Tpo" ".deps/fblinear8.Po"; else rm -f ".deps/fblinear8.Tpo"; exit 1; fi
fblinear8.cpp: In member function ‘virtual void FBLinear8::RevRect(int, int, int, int)’:
fblinear8.cpp:66: 警告:‘dest32’ 上的運算結果可能是未定義的
fblinear8.cpp:70: 警告:‘dest16’ 上的運算結果可能是未定義的
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT fbvgaplanes.o -MD -MP -MF ".deps/fbvgaplanes.Tpo" -c -o fbvgaplanes.o fbvgaplanes.cpp; \
        then mv -f ".deps/fbvgaplanes.Tpo" ".deps/fbvgaplanes.Po"; else rm -f ".deps/fbvgaplanes.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT libggi.o -MD -MP -MF ".deps/libggi.Tpo" -c -o libggi.o libggi.cpp; \
        then mv -f ".deps/libggi.Tpo" ".deps/libggi.Po"; else rm -f ".deps/libggi.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT lrmi.o -MD -MP -MF ".deps/lrmi.Tpo" -c -o lrmi.o lrmi.c; \
        then mv -f ".deps/lrmi.Tpo" ".deps/lrmi.Po"; else rm -f ".deps/lrmi.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src    -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT vgadev.o -MD -MP -MF ".deps/vgadev.Tpo" -c -o vgadev.o vgadev.cpp; \
        then mv -f ".deps/vgadev.Tpo" ".deps/vgadev.Po"; else rm -f ".deps/vgadev.Tpo"; exit 1; fi
rm -f libdisplay.a
ar cru libdisplay.a fbdev.o fblinear15.o fblinear16.o fblinear24.o fblinear32.o fblinear4.o fblinear8.o fbvgaplanes.o libggi.o lrmi.o vgadev.o
ranlib libdisplay.a
make[3]: Leaving directory `/root/DownSoft/zhcon/zhcon-0.2.5/src/display'
make[3]: Entering directory `/root/DownSoft/zhcon/zhcon-0.2.5/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT basefont.o -MD -MP -MF ".deps/basefont.Tpo" -c -o basefont.o basefont.cpp; \
        then mv -f ".deps/basefont.Tpo" ".deps/basefont.Po"; else rm -f ".deps/basefont.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT big52gbdecoder.o -MD -MP -MF ".deps/big52gbdecoder.Tpo" -c -o big52gbdecoder.o big52gbdecoder.cpp; \
        then mv -f ".deps/big52gbdecoder.Tpo" ".deps/big52gbdecoder.Po"; else rm -f ".deps/big52gbdecoder.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT big5decoder.o -MD -MP -MF ".deps/big5decoder.Tpo" -c -o big5decoder.o big5decoder.cpp; \
        then mv -f ".deps/big5decoder.Tpo" ".deps/big5decoder.Po"; else rm -f ".deps/big5decoder.Tpo"; exit 1; fi
big5decoder.cpp: In member function ‘virtual bool BIG5Decoder::IsCode2(char)’:
big5decoder.cpp:30: 警告:由于數(shù)據(jù)類型范圍限制,比較結果永遠為真
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT configfile.o -MD -MP -MF ".deps/configfile.Tpo" -c -o configfile.o configfile.cpp; \
        then mv -f ".deps/configfile.Tpo" ".deps/configfile.Po"; else rm -f ".deps/configfile.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT console.o -MD -MP -MF ".deps/console.Tpo" -c -o console.o console.cpp; \
        then mv -f ".deps/console.Tpo" ".deps/console.Po"; else rm -f ".deps/console.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT gb2big5decoder.o -MD -MP -MF ".deps/gb2big5decoder.Tpo" -c -o gb2big5decoder.o gb2big5decoder.cpp; \
        then mv -f ".deps/gb2big5decoder.Tpo" ".deps/gb2big5decoder.Po"; else rm -f ".deps/gb2big5decoder.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT gbdecoder.o -MD -MP -MF ".deps/gbdecoder.Tpo" -c -o gbdecoder.o gbdecoder.cpp; \
        then mv -f ".deps/gbdecoder.Tpo" ".deps/gbdecoder.Po"; else rm -f ".deps/gbdecoder.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT gbkdecoder.o -MD -MP -MF ".deps/gbkdecoder.Tpo" -c -o gbkdecoder.o gbkdecoder.cpp; \
        then mv -f ".deps/gbkdecoder.Tpo" ".deps/gbkdecoder.Po"; else rm -f ".deps/gbkdecoder.Tpo"; exit 1; fi
gbkdecoder.cpp: In member function ‘virtual bool GBKDecoder::IsCode2(char)’:
gbkdecoder.cpp:30: 警告:由于數(shù)據(jù)類型范圍限制,比較結果永遠為真
gbkdecoder.cpp: In member function ‘virtual unsigned int GBKDecoder::Index(char, char)’:
gbkdecoder.cpp:36: 警告:由于數(shù)據(jù)類型范圍限制,比較結果永遠為真
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT graphdev.o -MD -MP -MF ".deps/graphdev.Tpo" -c -o graphdev.o graphdev.cpp; \
        then mv -f ".deps/graphdev.Tpo" ".deps/graphdev.Po"; else rm -f ".deps/graphdev.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT hzdecoder.o -MD -MP -MF ".deps/hzdecoder.Tpo" -c -o hzdecoder.o hzdecoder.cpp; \
        then mv -f ".deps/hzdecoder.Tpo" ".deps/hzdecoder.Po"; else rm -f ".deps/hzdecoder.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT jisdecoder.o -MD -MP -MF ".deps/jisdecoder.Tpo" -c -o jisdecoder.o jisdecoder.cpp; \
        then mv -f ".deps/jisdecoder.Tpo" ".deps/jisdecoder.Po"; else rm -f ".deps/jisdecoder.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT kscdecoder.o -MD -MP -MF ".deps/kscdecoder.Tpo" -c -o kscdecoder.o kscdecoder.cpp; \
        then mv -f ".deps/kscdecoder.Tpo" ".deps/kscdecoder.Po"; else rm -f ".deps/kscdecoder.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cpp; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT window.o -MD -MP -MF ".deps/window.Tpo" -c -o window.o window.cpp; \
        then mv -f ".deps/window.Tpo" ".deps/window.Po"; else rm -f ".deps/window.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT winime.o -MD -MP -MF ".deps/winime.Tpo" -c -o winime.o winime.cpp; \
        then mv -f ".deps/winime.Tpo" ".deps/winime.Po"; else rm -f ".deps/winime.Tpo"; exit 1; fi
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT zhcon.o -MD -MP -MF ".deps/zhcon.Tpo" -c -o zhcon.o zhcon.cpp; \
        then mv -f ".deps/zhcon.Tpo" ".deps/zhcon.Po"; else rm -f ".deps/zhcon.Tpo"; exit 1; fi
zhcon.cpp:62:18: 錯誤:term.h:沒有那個文件或目錄
zhcon.cpp: In member function ‘void Zhcon::InitTty()’:
zhcon.cpp:444: 錯誤:‘tgetent’ 在此作用域中尚未聲明
zhcon.cpp:455: 錯誤:‘tgetstr’ 在此作用域中尚未聲明
make[3]: *** [zhcon.o] 錯誤 1
make[3]: Leaving directory `/root/DownSoft/zhcon/zhcon-0.2.5/src'
make[2]: *** [all-recursive] 錯誤 1
make[2]: Leaving directory `/root/DownSoft/zhcon/zhcon-0.2.5/src'
make[1]: *** [all-recursive] 錯誤 1
make[1]: Leaving directory `/root/DownSoft/zhcon/zhcon-0.2.5'
make: *** [all] 錯誤 2
無法繼續(xù)下去了,請問各位,這是什么原因?難道跟我文件放置的目錄有關系?

論壇徽章:
0
9 [報告]
發(fā)表于 2009-12-28 09:19 |只看該作者
在網(wǎng)上找了相關原因,說是源有問題,于是查看:../zhcon-0.2.5/src/iconv_string.c這個文件,看文件的前面有沒有這兩行
代碼:
#include "iconv_string.h"
#include <iconv.h>

然后再看一下,../zhcon-0.2.5/src/目錄下面有沒有iconv_string.h這個文件,再次執(zhí)行make
又出錯誤:
[root@localhost src]# vi iconv_string.c
[root@localhost src]# ls iconv_string.h
iconv_string.h
[root@localhost src]# make
Making all in display
make[1]: Entering directory `/root/DownSoft/zhcon/zhcon-0.2.5/src/display'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/DownSoft/zhcon/zhcon-0.2.5/src/display'
make[1]: Entering directory `/root/DownSoft/zhcon/zhcon-0.2.5/src'
if g++ -DHAVE_CONFIG_H -I. -I. -I..     -funsigned-char -O2 -march=i686 -DNDEBUG -Wall -MT zhcon.o -MD -MP -MF ".deps/zhcon.Tpo" -c -o zhcon.o zhcon.cpp; \
        then mv -f ".deps/zhcon.Tpo" ".deps/zhcon.Po"; else rm -f ".deps/zhcon.Tpo"; exit 1; fi
zhcon.cpp:62:18: 錯誤:term.h:沒有那個文件或目錄
zhcon.cpp: In member function ‘void Zhcon::InitTty()’:
zhcon.cpp:444: 錯誤:‘tgetent’ 在此作用域中尚未聲明
zhcon.cpp:455: 錯誤:‘tgetstr’ 在此作用域中尚未聲明
make[1]: *** [zhcon.o] 錯誤 1
make[1]: Leaving directory `/root/DownSoft/zhcon/zhcon-0.2.5/src'
make: *** [all-recursive] 錯誤 1

總算是前進了一些!此次又是什么錯誤呢?

論壇徽章:
0
10 [報告]
發(fā)表于 2009-12-28 10:50 |只看該作者
說是沒有term.h文件,找了一下,確實沒有!郁悶!如何繼續(xù),請各位高人再幫忙看看!
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復

  

北京盛拓優(yōu)訊信息技術有限公司. 版權所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關心和支持過ChinaUnix的朋友們 轉載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP