在VM Workstation上安装的RHEL 5.3,想要安装fcitx-3.6.3,
按照网上大家说的要安装的rpm包,仍无法make成功。请教各位,装N久了还没成。。。。急啊。。。。。。。
谢谢~~~~~~~~~~~
执行./configure的信息:
./config
bash: ./config: 没有那个文件或目录
[root@localhost fcitx-3.6.3]# ./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... 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 whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 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... install-shextern 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 DBUS... no
configure: WARNING: No dbus found, skipping configure for Dbus
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
make all-recursive
make[1]: Entering directory `/tmp/fcitx-3.6.3'
Making all in doc
make[2]: Entering directory `/tmp/fcitx-3.6.3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/fcitx-3.6.3/doc'
Making all in xpm
make[2]: Entering directory `/tmp/fcitx-3.6.3/xpm'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/fcitx-3.6.3/xpm'
Making all in lib
make[2]: Entering directory `/tmp/fcitx-3.6.3/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/tmp/fcitx-3.6.3/lib'
Making all in src
make[2]: Entering directory `/tmp/fcitx-3.6.3/src'
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -D_ENABLE_TRAY -I/usr/include/freetype2 -D_USE_XFT -Wall -MT ime.o -MD -MP -MF .deps/ime.Tpo -c -o ime.o ime.c
在包含自 ime.c:43 的文件中:
TrayWindow.h:5:21: 错误:X11/xpm.h:没有那个文件或目录
In file included from ime.c:43:
TrayWindow.h:19: 错误:expected specifier-qualifier-list before ‘XpmAttributes’
make[2]: *** [ime.o] 错误 1
make[2]: Leaving directory `/tmp/fcitx-3.6.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/tmp/fcitx-3.6.3'
make: *** [all] 错误 2
zhaoyh12 于 2010-09-30 11:41:02发表:
我在虚拟机上又装了三个Linux,按照同样的步骤,其中两个安装小企鹅输入法很正常,但有一个在make时一直出错,大家帮我看看是什么问题??谢谢!!
[root@localhost fcitx-3.6.3]# make
make all-recursive
make[1]: Entering directory `/usr/local/fcitx/fcitx-3.6.3'
Making all in doc
make[2]: Entering directory `/usr/local/fcitx/fcitx-3.6.3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3/doc'
Making all in xpm
make[2]: Entering directory `/usr/local/fcitx/fcitx-3.6.3/xpm'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3/xpm'
Making all in lib
make[2]: Entering directory `/usr/local/fcitx/fcitx-3.6.3/lib'
gcc -DHAVE_CONFIG_H -I. -I.. -c -O2 -fno-strength-reduce -fno-strict-aliasing -g -O2 -D_ENABLE_TRAY -I/usr/include/freetype2 -D_USE_XFT -Wall -MT IMConn.o -MD -MP -MF .deps/IMConn.Tpo -c -o IMConn.o IMConn.c
mv -f .deps/IMConn.Tpo .deps/IMConn.Po
rm -f libXimd.a
ar cru libXimd.a FrameMgr.o i18nAttr.o i18nClbk.o i18nIc.o i18nIMProto.o i18nMethod.o i18nPtHdr.o i18nUtil.o i18nX.o IMConn.o IMMethod.o IMValues.o
ranlib libXimd.a
make[2]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3/lib'
Making all in src
make[2]: Entering directory `/usr/local/fcitx/fcitx-3.6.3/src'
gcc -DPKGDATADIR=\"/usr/local/share/fcitx\" -I. -I.. -I. -I../lib -I../xpm -O2 -fno-strength-reduce -g -O2 -D_ENABLE_TRAY -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 -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 -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:765: 警告:提领类型双关的指针将破坏强重叠规则
tools.c:770: 警告:提领类型双关的指针将破坏强重叠规则
tools.c:806: 警告:提领类型双关的指针将破坏强重叠规则
tools.c:811: 警告:提领类型双关的指针将破坏强重叠规则
tools.c:1156: 警告:提领类型双关的指针将破坏强重叠规则
tools.c:1161: 警告:提领类型双关的指针将破坏强重叠规则
tools.c:1166: 警告:提领类型双关的指针将破坏强重叠规则
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 -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 -I/usr/include/freetype2 -D_USE_XFT -Wall -lXpm -lXtst -lpthread -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 DBus.o vk.o about.o QuickPhrase.o AutoEng.o extra.o internalVersion.o ImeRemote.o ../lib/libXimd.a -lXft -lXrender -lfontconfig -lfreetype -lX11 -lX11
InputWindow.o: In function `DisplayMessageDown':
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:640: undefined reference to `xftFontEn'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:641: undefined reference to `xftFontEn'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:640: undefined reference to `xftFont'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:641: undefined reference to `xftFont'
InputWindow.o: In function `DisplayMessageUp':
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:521: undefined reference to `xftFontEn'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:523: undefined reference to `xftFontEn'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:521: undefined reference to `xftFont'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:523: undefined reference to `xftFont'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:573: undefined reference to `xftFontEn'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:573: undefined reference to `xftFont'
InputWindow.o: In function `CalInputWindow':
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:397: undefined reference to `xftFontEn'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:357: undefined reference to `xftFontEn'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:397: undefined reference to `xftFont'
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:357: undefined reference to `xftFont'
InputWindow.o: In function `CalculateInputWindowHeight':
/usr/local/fcitx/fcitx-3.6.3/src/InputWindow.c:194: undefined reference to `xftFont'
about.o: In function `DrawAboutWindow':
/usr/local/fcitx/fcitx-3.6.3/src/about.c:163: undefined reference to `xftVKWindowFont'
/usr/local/fcitx/fcitx-3.6.3/src/about.c:163: undefined reference to `xftVKWindowFont'
/usr/local/fcitx/fcitx-3.6.3/src/about.c:169: undefined reference to `xftVKWindowFont'
/usr/local/fcitx/fcitx-3.6.3/src/about.c:169: undefined reference to `xftVKWindowFont'
/usr/local/fcitx/fcitx-3.6.3/src/about.c:175: undefined reference to `xftVKWindowFont'
about.o:/usr/local/fcitx/fcitx-3.6.3/src/about.c:175: more undefined references to `xftVKWindowFont' follow
collect2: ld 返回 1
make[2]: *** [fcitx] 错误 1
make[2]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3'
make: *** [all] 错误 2
onlineuser 于 2010-09-28 19:47:16发表:
感觉没错???难道是不兼容?!
zhaoyh12 于 2010-09-28 14:24:25发表:
哦,这样。
那我再装一遍,看是否能再现问题 谢谢 :)
deepwhite 于 2010-09-28 09:02:53发表:
我的意思是,或者建立 ~/.config , 或者使用 fcitx -c 。没想到你全用了,呵呵。
我以前也不知道 fcitx -c 这个用法,后来我发现如果 ~/.config 不存在的话导致 fcitx 无法启动,然后就向 fcitx 开发组提交了 bug ,他们告诉我的。
zhaoyh12 于 2010-09-27 21:02:38发表:
太感谢啦!!!
我创建~/.config目录后,再用fcitx -c运行它,reboot后就好了!!
版主,小女子对你的敬仰如滔滔江水
一鞠躬~~~
deepwhite 于 2010-09-27 14:40:29发表:
呵呵,已经装上了,对吧?
现在不能用?我怀疑是 ~/.config 目录不存在。
现在已经发行的 3.6.3 中有这个小问题,如果 ~/.config 目录不存在,就必须先建立这个目录,或者通过 fcitx -c 来运行它。
zhaoyh12 于 2010-09-27 13:10:49发表:
谢谢热心的版主,安装完libXtst-devel后,提示安装成功,再设置小企鹅为默认输入法,现在还不可使用,我再找找原因。再次感谢!!
zhaoyh12 于 2010-09-27 11:31:37发表:
[root@localhost /]# rpm -qa|grep libXtst
libXtst-1.0.1-3.1
这个也有装,为什么还报cannot find Xtst呢?
zhaoyh12 于 2010-09-27 11:29:00发表:
[root@localhost ~]# rpm -qa|grep libXft
libXft-2.1.10-1.1
libXft-devel-2.1.10-1.1
[root@localhost ~]# rpm -qa|grep libXrender
libXrender-devel-0.9.1-3.1
libXrender-0.9.1-3.1
[root@localhost ~]# rpm -qa|grep libX11
libX11-1.0.3-9.el5
libX11-devel-1.0.3-9.el5
这几个都安装了。。。。
zhaoyh12 于 2010-09-27 11:14:45发表:
缺lXtst,对应的rpm包也是这个名字吗?在Server下找不到这个名字对应的rpm包啊。。。
热心的版主,在不??
deepwhite 于 2010-09-26 14:44:39发表:
[code]internalVersion.o ImeRemote.o ../lib/libXimd.a -lXft -lXrender -lfontconfig -lfreetype -lX11 -lX11
/usr/bin/ld: cannot find -lXtst
collect2: ld 返回 1[/code]装上相应的包就行。
zhaoyh12 于 2010-09-25 19:54:30发表:
。。。。求救。。。。。。。。。。。
我新建了一个虚拟机,重装fcitx,想理一下安装的头绪,结果./configure的结果跟上面一样,但make的信息提示如下:
make all-recursive
make[1]: Entering directory `/usr/local/fcitx/fcitx-3.6.3'
Making all in doc
make[2]: Entering directory `/usr/local/fcitx/fcitx-3.6.3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3/doc'
Making all in xpm
make[2]: Entering directory `/usr/local/fcitx/fcitx-3.6.3/xpm'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3/xpm'
Making all in lib
make[2]: Entering directory `/usr/local/fcitx/fcitx-3.6.3/lib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3/lib'
Making all in src
make[2]: Entering directory `/usr/local/fcitx/fcitx-3.6.3/src'
gcc -O2 -fno-strength-reduce -g -O2 -D_ENABLE_TRAY -I/usr/include/freetype2 -D_USE_XFT -Wall -lXpm -lXtst -lpthread
-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 DBus.o vk.o about.o QuickPhrase.o AutoEng.o extra.o
internalVersion.o ImeRemote.o ../lib/libXimd.a -lXft -lXrender -lfontconfig -lfreetype -lX11 -lX11
/usr/bin/ld: cannot find -lXtst
collect2: ld 返回 1
make[2]: *** [fcitx] 错误 1
make[2]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/fcitx/fcitx-3.6.3'
make: *** [all] 错误 2
请问这是什么原因啊。。。-_-###
初学linux,很多不懂的。。。。。。。。。。请教达人,谢谢谢谢。。。。。。。。。
zhaoyh12 于 2010-09-25 18:44:20发表:
谢谢红联版主deepwhite,安装了libXpm-devel包后ok了,非常感谢!!!^_^
输入法已经可以使用了。
zhaoyh12 于 2010-09-25 18:42:44发表:
怎么无法引用回复呀?
deepwhite 于 2010-09-25 10:27:10发表:
呵呵,早就继续做了。
wangyu 于 2010-09-25 09:33:36发表:
这个已经不开发了吧,我若没记错,RHEL好像自带一个中文输入法(N年没用了,忘了是哪个了)
deepwhite 于 2010-09-25 08:52:10发表:
安装 libXpm 这个包,然后再编译。
或者向 fcitx 提 Bug吧,明明需要这个 libXpm或者 libXpm-devel , configure 的时候却没有检查,可以提 bug.