红联Linux门户
Linux帮助

Fedora 7 下安装Fcitx小企鹅输入法

发布时间:2007-08-29 16:00:36来源:红联作者:rganizati
以ROOT用户登录。(要不然权限不够,不能安装)

首先下载 FCITX 的源码包,文件名为 fcitx-3.4.1.tar.bz2,存放在某个临时的目录中(如/temp)。

下载地址:点击下载Fcitx小企鹅输入法

执行:
cd /temp
tar jxvf fcitx-3.4.1.tar.bz2

这样会建立目录 fcitx-3.4.1,所有的源码都在该目录中

然后依次输入:(#号后面为自己输入的代码)

[root@localhost beinan]# cd fcitx-3.4.1 进入fcitx-3.4.1,目录
[root@localhost fcitx-3.4.1]# ./configure
[root@localhost fcitx-3.4.1]# make
[root@localhost fcitx-3.4.1]# make install

至止,Fcitx小企鹅输入法安装完成。
文章评论

共有 1 条评论

  1. yuanye185 于 2007-09-03 13:22:32发表:

    make 错误
    [root@localhost fcitx-3.4.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 pkg-config is at least version 0.9.0... yes
    checking for XFT... 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... 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:

    [root@localhost fcitx-3.4.1]# make
    make all-recursive
    make[1]: Entering directory `/mnt/e/fcitx-3.4.1'
    Making all in doc
    make[2]: Entering directory `/mnt/e/fcitx-3.4.1/doc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/mnt/e/fcitx-3.4.1/doc'
    Making all in xpm
    make[2]: Entering directory `/mnt/e/fcitx-3.4.1/xpm'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/mnt/e/fcitx-3.4.1/xpm'
    Making all in lib
    make[2]: Entering directory `/mnt/e/fcitx-3.4.1/lib'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/mnt/e/fcitx-3.4.1/lib'
    Making all in src
    make[2]: Entering directory `/mnt/e/fcitx-3.4.1/src'
    if gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -INONE -Wall -MT InputWindow.o -MD -MP -MF ".deps/InputWindow.Tpo" -c -o InputWindow.o InputWindow.c; \
    then mv -f ".deps/InputWindow.Tpo" ".deps/InputWindow.Po"; else rm -f ".deps/InputWindow.Tpo"; exit 1; fi
    if gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -INONE -Wall -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
    then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
    if gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -INONE -Wall -MT tools.o -MD -MP -MF ".deps/tools.Tpo" -c -o tools.o tools.c; \
    then mv -f ".deps/tools.Tpo" ".deps/tools.Po"; else rm -f ".deps/tools.Tpo"; exit 1; fi
    if gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -INONE -Wall -MT about.o -MD -MP -MF ".deps/about.Tpo" -c -o about.o about.c; \
    then mv -f ".deps/about.Tpo" ".deps/about.Po"; else rm -f ".deps/about.Tpo"; exit 1; fi
    about.c:35:21: 错误:X11/xpm.h:没有那个文件或目录
    about.c: 在函数 ‘setIcon’ 中:
    about.c:184: 错误:‘XpmAttributes’ 未声明 (在此函数内第一次使用)
    about.c:184: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
    about.c:184: 错误:所在的函数内只报告一次。)
    about.c:184: 错误:expected ‘;’ before ‘attrib’
    about.c:189: 错误:‘attrib’ 未声明 (在此函数内第一次使用)
    about.c:190: 警告:隐式声明函数 ‘XCreatePixmapFromData’
    about.c:191: 错误:‘XpmSuccess’ 未声明 (在此函数内第一次使用)
    about.c:192: 警告:隐式声明函数 ‘XpmGetErrorString’
    about.c:192: 警告:格式 ‘%s’ 需要类型 ‘char *’,但实参 3 的类型为 ‘int’
    make[2]: *** [about.o] 错误 1
    make[2]: Leaving directory `/mnt/e/fcitx-3.4.1/src'
    make[1]: *** [all-recursive] 错误 1
    make[1]: Leaving directory `/mnt/e/fcitx-3.4.1'
    make: *** [all] 错误 2
    [root@localhost fcitx-3.4.1]#

    执行make install:

    [root@localhost fcitx-3.4.1]# make install
    Making install in doc
    make[1]: Entering directory `/mnt/e/fcitx-3.4.1/doc'
    make[2]: Entering directory `/mnt/e/fcitx-3.4.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'
    /usr/bin/install -c -m 644 'pinyin.txt' '/usr/local/share/fcitx/doc/pinyin.txt'
    make[2]: Leaving directory `/mnt/e/fcitx-3.4.1/doc'
    make[1]: Leaving directory `/mnt/e/fcitx-3.4.1/doc'
    Making install in xpm
    make[1]: Entering directory `/mnt/e/fcitx-3.4.1/xpm'
    make[2]: Entering directory `/mnt/e/fcitx-3.4.1/xpm'
    make[2]: Nothing to be done for `install-exec-am'.
    test -z "/usr/local/share/fcitx/xpm" || mkdir -p -- "/usr/local/share/fcitx/xpm"
    make[2]: Leaving directory `/mnt/e/fcitx-3.4.1/xpm'
    make[1]: Leaving directory `/mnt/e/fcitx-3.4.1/xpm'
    Making install in lib
    make[1]: Entering directory `/mnt/e/fcitx-3.4.1/lib'
    make[2]: Entering directory `/mnt/e/fcitx-3.4.1/lib'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/mnt/e/fcitx-3.4.1/lib'
    make[1]: Leaving directory `/mnt/e/fcitx-3.4.1/lib'
    Making install in src
    make[1]: Entering directory `/mnt/e/fcitx-3.4.1/src'
    if gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -INONE -Wall -MT about.o -MD -MP -MF ".deps/about.Tpo" -c -o about.o about.c; \
    then mv -f ".deps/about.Tpo" ".deps/about.Po"; else rm -f ".deps/about.Tpo"; exit 1; fi
    about.c:35:21: 错误:X11/xpm.h:没有那个文件或目录
    about.c: 在函数 ‘setIcon’ 中:
    about.c:184: 错误:‘XpmAttributes’ 未声明 (在此函数内第一次使用)
    about.c:184: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
    about.c:184: 错误:所在的函数内只报告一次。)
    about.c:184: 错误:expected ‘;’ before ‘attrib’
    about.c:189: 错误:‘attrib’ 未声明 (在此函数内第一次使用)
    about.c:190: 警告:隐式声明函数 ‘XCreatePixmapFromData’
    about.c:191: 错误:‘XpmSuccess’ 未声明 (在此函数内第一次使用)
    about.c:192: 警告:隐式声明函数 ‘XpmGetErrorString’
    about.c:192: 警告:格式 ‘%s’ 需要类型 ‘char *’,但实参 3 的类型为 ‘int’
    make[1]: *** [about.o] 错误 1
    make[1]: Leaving directory `/mnt/e/fcitx-3.4.1/src'
    make: *** [install-recursive] 错误 1
    [root@localhost fcitx-3.4.1]#




    怎么回事?