LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1384|回复: 22

十万个为什么

[复制链接]
发表于 2005-12-13 15:17:37 | 显示全部楼层 |阅读模式
这段时间完全泡到gentoo里出不来了,但基础太差,遇到问题了,请教如下
1,emege zhcon 编译出错,错误信息如下:
configure.in:96: AC_PROG_CXXCPP was called before AC_PROG_CXX
configure.in:102: warning: AC_TRY_RUN called without default to allow cross compiling
./configure: line 1055: test: =: unary operator expected
./configure: line 1546: s%@CXXCPP@%g++: command not found
/bin/sh: ./config.rpath: No such file or directory
fblinear24.cpp: In member function `virtual void FBLinear24:: DrawChar(int, int,
   int, int, CharBitMap*)':
fblinear24.cpp:162: warning: `__u32 d3' might be used uninitialized in this
   function
big5decoder.cpp: In member function `virtual bool BIG5Decoder::IsCode2(char)':
big5decoder.cpp:30: warning: comparison is always true due to limited range of
   data type
gbkdecoder.cpp: In member function `virtual bool GBKDecoder::IsCode2(char)':
gbkdecoder.cpp:30: warning: comparison is always true due to limited range of
   data type
gbkdecoder.cpp: In member function `virtual unsigned int
   GBKDecoder::Index(char, char)':
gbkdecoder.cpp:36: warning: comparison is always true due to limited range of
   data type
In file included from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/backward/strstream:51,
                 from zhcon.cpp:23:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
zhcon.cpp:263:6: warning: #warning OPEN_MAX undefined so far,try define it to 64
inputmanager.cpp: In member function `bool InputManager:oadImm(ImmInfo&)':
inputmanager.cpp:398: warning: unused variable `bool r'
In file included from /usr/include/linux/keyboard.h:14,
                 from inputmanager.cpp:517:
/usr/include/linux/wait.h: In function `int wait_on_bit(void*, int, int
   (*)(void*), unsigned int)':
/usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const
   volatile long unsigned int*'
/usr/include/linux/wait.h:376: error: invalid conversion from `void*' to `const
   volatile long unsigned int*'
/usr/include/linux/wait.h: In function `int wait_on_bit_lock(void*, int, int
   (*)(void*), unsigned int)':
/usr/include/linux/wait.h:400: error: invalid conversion from `void*' to `
   volatile long unsigned int*'
make[3]: *** [inputmanager.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

!!! ERROR: app-i18n/zhcon-0.2.3-r1 failed.
!!! Function src_compile, Line 34, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

这个要怎么理解?遇到这样的问题怎么解决?

2,关于local的问题,我机器现在的情况是 安装了arphicfonts,也有simsun,我的opera可以正确显示中文网页,效果也很好(没有粗体),但我的xterm不能正确显示中文,vi ~/.Xresources
加入以下配置:
XTerm*locale: true
XTerm*wideFont: -misc-simsun-medium-r-normal--0-0-0-0-c-0-gb2312-1
也还是不行,还有,看了很多帖子,发现local的设置方法很多,没有定论,也不知道原理,汉化的方法也很多,也是不知道原理,感觉这样直接copy即使成功了,以后遇到问题还是不会,我的要求很简单,能够输入中文,显示中文,该怎么做?哪里有详细介绍这方面的资料,关于local 还有字体配置的?

3,fcitx也有问题了,emerge成功,就是无法启动,手工启动也不行

4,alsa的问题,我把alsa还有我的声卡的驱动都直接编译到内核了,因为我编译的内核只有我自己用,所以把硬件驱动都编译进去了,但是问题来了,开机时可以看见有显示 alsa ......SiS 7012(我的声卡),安装了alsa-utils,用alsaconfig无法识别我的声卡,看到顶置的帖子有说不要把声卡的驱动编译进去内核,只编译进alsa支持,然后安装alsa-drivers 是不是非要这么做?为什么直接编译进去不行呢?

暂时就这么多了,问题太多了,感觉还是英语太差了,没学好,大家帮忙(现在一定要把英语学好,然后玩gentoo)
发表于 2005-12-13 16:58:03 | 显示全部楼层
关于zhcon,有办法的,查查官方论坛,记得是要自己手工打个补丁。
关于locale,如果搞不定xterm,还是用gnome-terminal吧,虽然慢点,但是省心,也漂亮。
关于fcitx,手工运行有什么出错信息?
关于alsa,如果都编译进内核了,那不需要alsaconfig了,直接就好用了。试试起动后直接alsamixer,如果看得到控制界面,那说明一切都OK了,可以直接用。
回复 支持 反对

使用道具 举报

发表于 2005-12-13 17:23:19 | 显示全部楼层
fcitx要在 LC_CTYPE=  zh_CN 或者 zh_CN.utf8的情况下才能正常启动 具体的可以到
www.fcitx.org  上面看具体的说明
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-13 17:35:03 | 显示全部楼层
谢谢上面的2位,这就去查
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-13 19:41:15 | 显示全部楼层
终于解决了一些问题
fcitx解决了
xterm不好搞,我参考了
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=67324
这个帖子,用了rxvt,很好,我的fvwm也可以显示中文了
alsa没有解决,可以用alsamixer,但我用mpg123播放mp3试了一下,不行
Can't oper /dev/dsp!
准备编译个内核,装alsa-driver试试
zhcon解决中...
其实所有问题稍为想一下,就查到了,但当时查便了就是没想到到正确的地方去查,唉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-13 19:46:22 | 显示全部楼层
终于解决了一些问题
fcitx解决了
xterm不好搞,参照这个
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=67324
用了rxvt,很好,fvwm也可以显示中文了
alsa还是不行,可以用alsamixer
但用mpg123 出错
Can't open /dev/dsp!
准备再编译个内核用alsa-driver试试
zhcon解决中...
其实大多问题找对地方就有解决办法了
但当时就是没找到
今上面一提示,就找到了,唉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-13 19:46:26 | 显示全部楼层
终于解决了一些问题
fcitx解决了
xterm不好搞,参照这个
http://www.linuxsir.cn/forum.php?mod=viewthread&tid=67324
用了rxvt,很好,fvwm也可以显示中文了
alsa还是不行,可以用alsamixer
但用mpg123 出错
Can't open /dev/dsp!
准备再编译个内核用alsa-driver试试
zhcon解决中...
其实大多问题找对地方就有解决办法了
但当时就是没找到
今上面一提示,就找到了,唉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-13 19:49:38 | 显示全部楼层
郁闷,发了半天没反映,结果发了3遍
自己又不能删帖子
回复 支持 反对

使用道具 举报

发表于 2005-12-13 22:17:34 | 显示全部楼层
Term用urxvt,
一直用mpg321/mpd,输出到alsa没有任何问题。
/dev/dsp应该是oss的设备,可以用alsa-oss emulator
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-13 22:33:57 | 显示全部楼层
/dev/dsp是oss的设备,那么alsa呢?
现在我用mpg123 能不能检查出我的声卡能不能工作呢
没装mpg321
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表