LinuxSir.cn,穿越时空的Linuxsir!

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

ubuntu9.04上安装fcitx3.6.2失败,请大家帮忙

[复制链接]
发表于 2009-12-26 15:19:55 | 显示全部楼层 |阅读模式
安装了好几次,都失败了,看这些错误也不明白什么意思,所以请大家帮忙看看,先谢谢了。如果有时间,请解释一下那些错误的意思。

下面是root执行./configure,make,make install后出现的信息

# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
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... done
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
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 limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking malloc/malloc.h usability... no
checking malloc/malloc.h presence... no
checking for malloc/malloc.h... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking wait.h usability... yes
checking wait.h presence... yes
checking for wait.h... yes
checking for sys/wait.h... (cached) yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking for X... libraries , headers
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XFT... yes
checking for pid_t... yes
checking for size_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking return type of signal handlers... void
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for setlocale... yes
checking for strcasecmp... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating fcitx.spec
config.status: creating doc/Makefile
config.status: creating data/Makefile
config.status: creating xpm/Makefile
config.status: creating lib/Makefile
config.status: creating src/version.h
config.status: creating src/Makefile
config.status: creating tools/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


# make
make  all-recursive
make[1]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2'
Making all in doc
make[2]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/doc'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/doc'
Making all in xpm
make[2]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/xpm'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/xpm'
Making all in lib
make[2]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/lib'
make[2]: 没有什么可以做的为 `all'。
make[2]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/lib'
Making all in src
make[2]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/src'
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -g -O2   -D_ENABLE_TRAY  -D_ENABLE_LOG  -I/usr/include/freetype2   -D_USE_XFT -Wall -MT InputWindow.o -MD -MP -MF .deps/InputWindow.Tpo -c -o InputWindow.o InputWindow.c
mv -f .deps/InputWindow.Tpo .deps/InputWindow.Po
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -g -O2   -D_ENABLE_TRAY  -D_ENABLE_LOG  -I/usr/include/freetype2   -D_USE_XFT -Wall -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
mv -f .deps/main.Tpo .deps/main.Po
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -g -O2   -D_ENABLE_TRAY  -D_ENABLE_LOG  -I/usr/include/freetype2   -D_USE_XFT -Wall -MT tools.o -MD -MP -MF .deps/tools.Tpo -c -o tools.o tools.c
tools.c: 在函数‘ConvertGBKSimple2Tradition’中:
tools.c:1833: 警告: 忽略声明有 warn_unused_result 属性的‘fread’的返回值
mv -f .deps/tools.Tpo .deps/tools.Po
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm   -O2 -fno-strength-reduce -g -O2   -D_ENABLE_TRAY  -D_ENABLE_LOG  -I/usr/include/freetype2   -D_USE_XFT -Wall -MT about.o -MD -MP -MF .deps/about.Tpo -c -o about.o about.c
mv -f .deps/about.Tpo .deps/about.Po
gcc -O2 -fno-strength-reduce -g -O2   -D_ENABLE_TRAY  -D_ENABLE_LOG  -I/usr/include/freetype2   -D_USE_XFT -Wall -lXpm -lXtst  -o fcitx IC.o ime.o InputWindow.o KeyList.o main.o MainWindow.o MyErrorsHandlers.o punc.o py.o PYFA.o pyMapTable.o pyParser.o sp.o tools.o ui.o table.o xim.o qw.o tray.o TrayWindow.o vk.o about.o QuickPhrase.o AutoEng.o extra.o internalVersion.o ../lib/libXimd.a -lXft   -lX11
/usr/bin/ld: cannot find -lXtst
collect2: ld 返回 1
make[2]: *** [fcitx] 错误 1
make[2]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2'
make: *** [all] 错误 2

# make install
Making install in doc
make[1]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/doc'
make[2]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/doc'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/local/share/fcitx/doc" || /bin/mkdir -p "/usr/local/share/fcitx/doc"
/usr/bin/install -c -m 644 cjkvinput.txt wb_fh.htm fcitx3.pdf pinyin.txt fcitx_trunk.doxyfile fcitx3.odt Develop_Readme.GBK API.txt '/usr/local/share/fcitx/doc'
make[2]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/doc'
make[1]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/doc'
Making install in xpm
make[1]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/xpm'
make[2]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/xpm'
make[2]: 没有什么可以做的为 `install-exec-am'。
test -z "/usr/local/share/fcitx/xpm" || /bin/mkdir -p "/usr/local/share/fcitx/xpm"
/usr/bin/install -c -m 644 about_icon.xpm chnPunc.xpm engPunc.xpm ft-0.xpm ft-1.xpm fullcorner.xpm gbk-0.xpm gbk-1.xpm halfcorner.xpm lock-0.xpm lock-1.xpm logo.xpm lx-0.xpm lx-1.xpm next.xpm prev.xpm vk-1.xpm vk.xpm '/usr/local/share/fcitx/xpm'
make[2]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/xpm'
make[1]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/xpm'
Making install in lib
make[1]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/lib'
make[2]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/lib'
make[2]: 没有什么可以做的为 `install-exec-am'。
make[2]: 没有什么可以做的为 `install-data-am'。
make[2]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/lib'
make[1]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/lib'
Making install in src
make[1]: 正在进入目录 `/home/getgo/data/package/fcitx-3.6.2/src'
gcc -O2 -fno-strength-reduce -g -O2   -D_ENABLE_TRAY  -D_ENABLE_LOG  -I/usr/include/freetype2   -D_USE_XFT -Wall -lXpm -lXtst  -o fcitx IC.o ime.o InputWindow.o KeyList.o main.o MainWindow.o MyErrorsHandlers.o punc.o py.o PYFA.o pyMapTable.o pyParser.o sp.o tools.o ui.o table.o xim.o qw.o tray.o TrayWindow.o vk.o about.o QuickPhrase.o AutoEng.o extra.o internalVersion.o ../lib/libXimd.a -lXft   -lX11
/usr/bin/ld: cannot find -lXtst
collect2: ld 返回 1
make[1]: *** [fcitx] 错误 1
make[1]:正在离开目录 `/home/getgo/data/package/fcitx-3.6.2/src'
make: *** [install-recursive] 错误 1
发表于 2009-12-26 15:40:21 | 显示全部楼层
简单的说还需要安装 libxtst-dev。

其实不需要自己编译,可以手动下载 3.6.2 的 deb 文件安装。
http://packages.ubuntu.com/lucid/fcitx

对于源里本来就有的包,如果一定要重新编译应该去看看编译依赖,尤其是看看你所编译的版本对应的编译依赖,下面地址进入后查找 Build-Depends 字段。
http://archive.ubuntu.com/ubuntu ... x/fcitx_3.6.2-1.dsc

对于源里本来就有的包也不是用 configure make make install 这种老三步操作,这里有更智能化的命令。
  1. fakeroot debian/rules binary
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-26 23:04:54 | 显示全部楼层
真是感谢AutoXBC的解答。
1.让我知道了查看.dsc文件。
2.让我知道了fakeroot debian/rules binary。

还有一问就是自己编译与deb包安装有什么不同吗?
回复 支持 反对

使用道具 举报

发表于 2009-12-26 23:17:40 | 显示全部楼层
自己编译可以定制一些参数,能够启用/禁用一些特性。对于绝大多数人来说,这种定制意义不大,还是 deb 更方便更稳定,自己编译更多的是精力过剩时的折腾玩物。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-27 09:56:32 | 显示全部楼层
非常感谢AutoXBC的回答
回复 支持 反对

使用道具 举报

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

本版积分规则

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