|
发表于 2006-7-22 18:11:10
|
显示全部楼层
Post by sinlu
[root@localhost fcitx-3.2.1]# make
make all-recursive
make[1]: Entering directory `/home/sinlu/Desktop/fcitx-3.2.1'
Making all in doc
make[2]: Entering directory `/home/sinlu/Desktop/fcitx-3.2.1/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/sinlu/Desktop/fcitx-3.2.1/doc'
Making all in tools
make[2]: Entering directory `/home/sinlu/Desktop/fcitx-3.2.1/tools'
gcc -g -O2 -INONE -Wall -o mb2txt mb2txt.o -LNONE -lX11
/usr/bin/ld:找不到 -lX11
collect2: ld 返回 1
make[2]: *** [mb2txt] 错误 1
make[2]: Leaving directory `/home/sinlu/Desktop/fcitx-3.2.1/tools'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/sinlu/Desktop/fcitx-3.2.1'
make: *** [all-recursive-am] 错误 2
make install
在运行make的时候,可能会失败,如果你得到错误信息如下:
(没有编译器cc或gcc)<哪位兄弟给找一下出错信息?我这里实在出不来>
以前没有编译过软件包吧?没关系,找出你的安装光盘,装上gcc的rpm,一般就在第一张盘上。也可以装上开发工具,这样以后编译什么软件包也方便。
有了编译器,还有可能出错的,因为ebf用了xlib的头文件,如果没装,就会:
MConn.c:32:22: X11/Xlib.h: No such file or directory
.....
make[1]: *** [IMConn.o] 错误 1
make[1]: Leaving directory `/home/liuyi/tmp/fcitx-1.8.2/IMdkit/lib'
make: *** [libXimd.a] 错误 2
[root@localhost fcitx-1.8.2]#
再找出光盘,装上XFree86的开发包(通常名为XFree86-devel),好了,现在不会有什么问题了(如果还有问题,反馈给我,我好补充进来)。
安装完了以后,可执行文件是/usr/bin/fcitx,数据文件在/usr/share/fcitx目录里面。
what can i do next step? i am a newcomer. thanks a lot.
"/usr/bin/ld:找不到 -lX11" 这一句说链接程序ld在/lib和/usr/lib和/usr/local/lib里找不到X11的库。所以不能继续。不知道你./configure通过了没有。
看看下面这个,应该对你很有帮助的
root@ubuntu:/home/fwolf/download/fcitx-3.1.1# make
make all-recursive
make[1]: Entering directory `/home/fwolf/download/fcitx-3.1.1′
Making all in doc
make[2]: Entering directory `/home/fwolf/download/fcitx-3.1.1/doc’
make[2]: Nothing to be done for `all’.
make[2]: Leaving directory `/home/fwolf/download/fcitx-3.1.1/doc’
Making all in tools
make[2]: Entering directory `/home/fwolf/download/fcitx-3.1.1/tools’
gcc -g -O2 -INONE -Wall -o mb2txt mb2txt.o -LNONE -lX11
[color="Red"]/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[2]: *** [mb2txt] Error 1
make[2]: Leaving directory `/home/fwolf/download/fcitx-3.1.1/tools’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fwolf/download/fcitx-3.1.1′
make: *** [all] Error 2
Seems “[color="Red"]cannot find -lX11″, so install libx11-dev, make again, error again :
…
/home/fwolf/download/fcitx-3.1.1/tools/txt2mb.c:115: undefined reference to `rpl_malloc’
txt2mb.o:/home/fwolf/download/fcitx-3.1.1/tools/txt2mb.c:121: more undefined references to `rpl_malloc’ follow
collect2: ld returned 1 exit status
…
Comment “#define malloc rpl_malloc” in config.h, then make again, done. About this error, see also here and here.
Command “make install” successful executed, run command “make clean” to remove binaries and object file wile make, and “make distclean” to also remove file created by ./configure. |
|