LinuxSir.cn,穿越时空的Linuxsir!

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

fcitx安装错误提示 请过来人帮忙把脉(问题解决)

[复制链接]
发表于 2006-2-16 10:05:29 | 显示全部楼层 |阅读模式
[root@admin root]# cd fcitx-3.1.1
[root@admin fcitx-3.1.1]#  ./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 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 ANSI C... 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 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 egrep... 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... no
checking for pkg-config... /usr/bin/pkg-config
checking for xft >= 0.0.0... Package xft was not found in the pkg-config search path.
Perhaps you should add the directory containing `xft.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xft' found
configure: WARNING: No xft found, skipping configure for FreeType and Xft
checking for pid_t... yes
checking for size_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... no
checking for vfork... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... no
checking return type of signal handlers... void
checking for memmove... no
checking for memset... no
checking for mkdir... no
checking for setlocale... no
checking for strcasecmp... no
checking for strstr... no
checking for strtol... no
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 debian/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
[root@admin fcitx-3.1.1]# make
make  all-recursive
make[1]: Entering directory `/root/fcitx-3.1.1'
Making all in doc
make[2]: Entering directory `/root/fcitx-3.1.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/fcitx-3.1.1/doc'
Making all in tools
make[2]: Entering directory `/root/fcitx-3.1.1/tools'
gcc  -g -O2 -INONE -Wall   -o mb2txt  mb2txt.o  -LNONE -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[2]: *** [mb2txt] Error 1
make[2]: Leaving directory `/root/fcitx-3.1.1/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/fcitx-3.1.1'
make: *** [all] Error 2
[root@admin fcitx-3.1.1]# make install
Making install in doc
make[1]: Entering directory `/root/fcitx-3.1.1/doc'
make[2]: Entering directory `/root/fcitx-3.1.1/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/fcitx/doc" || mkdir -p -- "/usr/local/share/fcitx/doc" /usr/bin/install -c -m 644 'cjkvinput.txt' '/usr/local/share/fcitx/doc/cjkvinput.txt'
/usr/bin/install -c -m 644 'wb_fh.htm' '/usr/local/share/fcitx/doc/wb_fh.htm'
/usr/bin/install -c -m 644 'fcitx3.pdf' '/usr/local/share/fcitx/doc/fcitx3.pdf'make[2]: Leaving directory `/root/fcitx-3.1.1/doc'
make[1]: Leaving directory `/root/fcitx-3.1.1/doc'
Making install in tools
make[1]: Entering directory `/root/fcitx-3.1.1/tools'
gcc  -g -O2 -INONE -Wall   -o mb2txt  mb2txt.o  -LNONE -lX11
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [mb2txt] Error 1
make[1]: Leaving directory `/root/fcitx-3.1.1/tools'
make: *** [install-recursive] Error 1
[root@admin fcitx-3.1.1]#
 楼主| 发表于 2006-2-16 12:26:30 | 显示全部楼层

where is the "XMODIFIERS"

[root@admin root]# rpm -qi fcitx
Name        : fcitx                        Relocations: (not relocateable)
Version     : 3.2.051108                        Vendor: (none)
Release     : fc4                           Build Date: 2005年11月27日 星期日 00时39分06秒
Install Date: 2006年02月16日 星期四 12时07分31秒      Build Host: localhost.localdomain
Group       : 用户界面/桌面                 Source RPM: fcitx-3.2.051108-fc4.src.rpm
Size        : 12348314                         License: GPL
Signature   : (none)
Packager    : Xie Yanbo <xyb76@sina.com>
URL         : http://www.fcitx.org/
Summary     : Free Chinese Input Toy for X (XIM)
Description :
Fcitx──小企鹅输入法即Free Chinese Input Toy for X,它是一个以GPL方式
发布的、基于XIM的简体中文输入法(即原来的G五笔),包括码表、全拼拼音、双拼
拼音输入法,并可运行在Linux及其它类UNIX平台上。
Designed by Yuking <yuking_net@suho.com>
[root@admin root]# fcitx
Please set XMODIFIERS...
[root@admin root]#
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-20 12:27:23 | 显示全部楼层
我装了好多个fcitx版本 现在终于装好了
很是开心

经验是:不同的FC内核  用的FCITX版本也不一样
打到合适你的
安装
再根据下面的提示配置
一切OK!

  应用程序通过环境变量XMODIFIERS与XIM沟通,设置XMODIFIERS的方法如下(以bash为例):

      export XMODIFIERS="@im=YOUR_XIM_NAME"

  上面的YOUR_XIM_NAME为XIM程序在系统注册的名字。应用程序启动时会根据该变量查找相应的XIM服务器。因此,即便系统中同时运行了若干个XIM程序,一个应用程序在某个时刻也只能使用一个XIM输入法。有时候您会遇到这种情况,明明XIM已经启动了,但应用程序就是无法使用。这往往是因为XMODIFIERS设置不正确所致,如您配置系统时在不同的脚本文件中修改了XMODIFIERS,从而导致X启动时与启动完成后该变量不一致。

  fcitx缺省注册的XIM名为fcitx,但如果fcitx启动时XMODIFIERS已经设置好,fcitx会自动以系统的设置来注册合适的名字。因此,对于新安装的Mandrake和RedHat,最简单的方法是执行以下命令:

      cd /usr/bin
      ln -sf fcitx chinput

  然后重新启动X即可。如果该方法不行,那您需要手工设置环境变量。一般可以在~/.bashrc增加行:

      export XMODIFIERS="@im=fcitx"
      export XIM=fcitx
      export XIM_PROGRAM=fcitx

  然后重新登录当前用户,启动X即可。如果fcitx没有自动启动,您需要在X下的命令行上执行:

      fcitx

  fcitx默认以后台方式运行,如果您不想以这种方式运行,可以按以下方式运行:

      fcitx -nb
回复 支持 反对

使用道具 举报

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

本版积分规则

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