Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
huaigu
帖子: 13
注册时间: 2010-04-18 7:51

Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

#1

帖子 huaigu » 2011-03-04 22:55

1.编译安装:
从google code下载的fcitx4.0.1_all.tar.gz解压后,执行命令./configure,结果出现错误如下:
checking for XRENDER... no
configure: error: No XRender Lib found!


2.PPA安装:
运行如下命令:
sudo add-apt-repository ppa:wengxt/fcitx-nightly 增加ppa源
sudo apt-get update 更新软件库
在此处出现了如下错误:
http://ppa.launchpad.net karmic/main Packages 404不能找到

期待大家的帮助!
头像
ati9550128m
帖子: 47
注册时间: 2010-07-30 15:52

Re: Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

#2

帖子 ati9550128m » 2011-03-05 11:29

第一个:
sudo apt-get install libxrender-dev
第二个:
1/先检查网络链接
2/更换源deb http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu lucid main

代码: 全选

[url]http://blog.sina.com.cn/1989wc[/url]
huaigu
帖子: 13
注册时间: 2010-04-18 7:51

Re: Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

#3

帖子 huaigu » 2011-03-05 13:02

ati9550128m 写了:第一个:
sudo apt-get install libxrender-dev
第二个:
1/先检查网络链接
2/更换源deb http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu lucid main
谢谢你的回答啊!但是还是存在一些问题
方法一:
安装上XRender包后又出现如下错误:
checking for CAIRO_XLIB... no
configure: error: No cairo-xlib found!


好像还缺少一些包,搜索了一下不知道该装哪个包?
不知道有什么方法可以在安装软件的时候,直接将相关联的的包直接一块安装上啊?

方法二:
我开始采用的安装方法是:
sudo add-apt-repository ppa:wengxt/fcitx-nightly 增加ppa源
sudo apt-get update 更新软件库
sudo apt-get install fcitx fcitx-config-gtk fcitx-sunpinyin 安装输入法

出现了我提问中的错误
按照你的方法手动添加源以后,出现了如下错误:
错误 http://ppa.launchpad.net karmic/main Packages
404 Not Found
下载 2,260B,耗时 5 秒 (452B/s)
W: 无法下载 http://ppa.launchpad.net/wengxt/fcitx-n ... ackages.gz 404 Not Found
E: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件


好像和我的那个方法错误差不多,不知道还有没有别的解决办法?
谢谢
头像
nick198119
帖子: 215
注册时间: 2008-08-23 15:00

Re: Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

#4

帖子 nick198119 » 2011-03-05 20:29

编译前用 sudo apt-get build-dep fcitx
解决依赖问题。
头像
hack21
帖子: 16
注册时间: 2010-01-26 13:13

Re: Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

#5

帖子 hack21 » 2011-03-19 13:10

huaigu 写了:
ati9550128m 写了:第一个:
sudo apt-get install libxrender-dev
第二个:
1/先检查网络链接
2/更换源deb http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu lucid main
谢谢你的回答啊!但是还是存在一些问题
方法一:
安装上XRender包后又出现如下错误:
checking for CAIRO_XLIB... no
configure: error: No cairo-xlib found!


好像还缺少一些包,搜索了一下不知道该装哪个包?
不知道有什么方法可以在安装软件的时候,直接将相关联的的包直接一块安装上啊?

谢谢
我也是……
checking for CAIRO_XLIB... no
configure: error: No cairo-xlib found!
这什么问题
头像
hack21
帖子: 16
注册时间: 2010-01-26 13:13

Re: Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

#6

帖子 hack21 » 2011-03-19 14:02

我终于搞定上面两个库上个问题了
checking for CAIRO_XLIB... no
configure: error: No cairo-xlib found!
是用libcairo2-dev这个,可是我一make就又好多错误,这4.0就是我的瘟神啊 = = 这下我完全不会解决了
jackie@jackie-laptop:~/fcitx-4.0.1$ make
make all-recursive
make[1]: 正在进入目录 `/home/jackie/fcitx-4.0.1'
Making all in doc
make[2]: 正在进入目录 `/home/jackie/fcitx-4.0.1/doc'
Making all in man
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/doc/man'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/doc/man'
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/doc'
make[3]: 没有什么可以做的为 `all-am'。
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/doc'
make[2]:正在离开目录 `/home/jackie/fcitx-4.0.1/doc'
Making all in skin
make[2]: 正在进入目录 `/home/jackie/fcitx-4.0.1/skin'
Making all in default
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/skin/default'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/skin/default'
Making all in classic
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/skin/classic'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/skin/classic'
Making all in dark
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/skin/dark'
make[3]: 没有什么可以做的为 `all'。
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/skin/dark'
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/skin'
make[3]: 没有什么可以做的为 `all-am'。
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/skin'
make[2]:正在离开目录 `/home/jackie/fcitx-4.0.1/skin'
Making all in lib
make[2]: 正在进入目录 `/home/jackie/fcitx-4.0.1/lib'
CC FrameMgr.o
CC i18nAttr.o
CC i18nClbk.o
CC i18nIc.o
CC i18nIMProto.o
CC i18nMethod.o
CC i18nPtHdr.o
CC i18nUtil.o
CC i18nX.o
CC IMConn.o
CC IMMethod.o
CC IMValues.o
AR libXimd.a
make[2]:正在离开目录 `/home/jackie/fcitx-4.0.1/lib'
Making all in src
make[2]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src'
Making all in fcitx-config
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/fcitx-config'
CC libfcitx_config_la-cutils.lo
cutils.c: In function 'FcitxLogFunc':
cutils.c:114: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result
CC libfcitx_config_la-sprintf.lo
CC libfcitx_config_la-fcitx-config.lo
fcitx-config.c: In function 'ConfigOptionInteger':
fcitx-config.c:343: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
fcitx-config.c: In function 'ConfigOptionColor':
fcitx-config.c:439: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
fcitx-config.c: In function 'ConfigOptionChar':
fcitx-config.c:482: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
fcitx-config.c: In function 'ConfigOptionHotkey':
fcitx-config.c:546: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
CC libfcitx_config_la-hotkey.lo
CC libfcitx_config_la-xdg.lo
xdg.c: In function 'GetXDGPath':
xdg.c:267: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
xdg.c:269: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
CCLD libfcitx-config.la
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/fcitx-config'
Making all in im
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/im'
Making all in pinyin
make[4]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/im/pinyin'
CC py.o
py.c: In function ‘LoadPYBaseDict’:
py.c:124: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:127: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:130: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:134: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:135: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:137: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c: In function ‘LoadPYPhraseDict’:
py.c:259: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:261: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:263: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:265: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:267: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:279: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c: In function ‘LoadPYOtherDict’:
py.c:389: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:393: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:394: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:395: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:396: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:397: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:421: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:428: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:429: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:439: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:440: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:442: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:444: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
py.c:446: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
CC PYFA.o
CC pyMapTable.o
CC pyParser.o
CC sp.o
AR libimpinyin.a
make[4]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/im/pinyin'
Making all in table
make[4]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/im/table'
CC table.o
table.c: In function ‘LoadTableDict’:
table.c:286: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:288: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:290: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:294: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:305: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:312: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:316: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:318: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:320: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:325: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:326: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:329: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:330: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:331: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:339: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:346: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:347: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:348: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:357: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:363: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:364: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:440: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:445: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:446: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
table.c:447: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
CC tableconfig.o
AR libimtable.a
make[4]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/im/table'
Making all in qw
make[4]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/im/qw'
CC qw.o
AR libimqw.a
make[4]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/im/qw'
Making all in special
make[4]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/im/special'
CC AutoEng.o
AutoEng.c: In function ‘LoadAutoEng’:
AutoEng.c:55: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
CC punc.o
CC QuickPhrase.o
CC vk.o
AR libimspecial.a
make[4]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/im/special'
Making all in extra
make[4]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/im/extra'
CC extra.o
AR libimextra.a
make[4]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/im/extra'
make[4]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/im'
make[4]: 没有什么可以做的为 `all-am'。
make[4]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/im'
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/im'
Making all in ui
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/ui'
CC InputWindow.o
CC MainWindow.o
CC TrayWindow.o
CC MessageWindow.o
CC tray.o
CC AboutWindow.o
CC ui.o
CC skin.o
CC skinconfig.o
CC MenuWindow.o
CC font.o
AR libui.a
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/ui'
Making all in tools
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/tools'
CC utf8.o
CC tools.o
tools.c: In function ‘InitAsDaemon’:
tools.c:274: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result
CC configfile.o
CC profile.o
AR libtools.a
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/tools'
Making all in interface
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/interface'
CC DBus.o
CC ImeRemote.o
ImeRemote.c: In function ‘send_ime_state’:
ImeRemote.c:109: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
ImeRemote.c: In function ‘main_loop’:
ImeRemote.c:118: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result
AR libinterface.a
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/interface'
Making all in core
make[3]: 正在进入目录 `/home/jackie/fcitx-4.0.1/src/core'
CC IC.o
CC MyErrorsHandlers.o
CC ime.o
CC internalVersion.o
CC xim.o
CC addon.o
CC keys.o
CC main.o
CCLD fcitx
../im/special/libimspecial.a(vk.o): In function `CreateVKWindow':
/home/jackie/fcitx-4.0.1/src/im/special/vk.c:80: undefined reference to `FindARGBVisual'
../ui/libui.a(InputWindow.o): In function `CreateInputWindow':
/home/jackie/fcitx-4.0.1/src/ui/InputWindow.c:92: undefined reference to `FindARGBVisual'
../ui/libui.a(MainWindow.o): In function `CreateMainWindow':
/home/jackie/fcitx-4.0.1/src/ui/MainWindow.c:79: undefined reference to `FindARGBVisual'
../ui/libui.a(MenuWindow.o): In function `CreateXlibMenu':
/home/jackie/fcitx-4.0.1/src/ui/MenuWindow.c:88: undefined reference to `FindARGBVisual'
collect2: ld returned 1 exit status
make[3]: *** [fcitx] 错误 1
make[3]:正在离开目录 `/home/jackie/fcitx-4.0.1/src/core'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/home/jackie/fcitx-4.0.1/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/jackie/fcitx-4.0.1'
make: *** [all] 错误 2
Dailourcy
帖子: 7
注册时间: 2010-09-18 15:24

Re: Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

#7

帖子 Dailourcy » 2011-04-04 13:16

我和楼主一样用的是9.10,而且由于我用chrome浏览器,所以不适合用ibus,于是之前也试着装fcitx,但是都装不上,后来又用回scim,刚才又卸掉scim改用fictx4.0.1了。我在网上搜到的安装方法,试了一下,很顺利的。
首先,我用的源也是deb http://ppa.launchpad.net/wengxt/fcitx-nightly/ubuntu lucid main,手动添加到新立得软件包管理器的软件库里。
然后再更新源:$ sudo apt-get update
安装 $ sudo apt-get install fcitx
之后就一切顺利搞定了。没有遇到LZ说的问题。
:em06 至于编译的方法,我是菜鸟,我也不会。在这里把我参考的原文链接奉上,http://blog.sina.com.cn/s/blog_6c9d65a10100njb1.html希望能够对你有所帮助。总之,加油! :em11
PS:我觉得我前几次安装fcitx失败可能是因为我没有把ibus和scim卸干净,这一次我是确确实实把前两个都卸干净了,才开始安装fictx的。不过,我现在也有一个小小的问题,就是不能像scim那样用shift键切换中英文。我以前没用过fictx,所以不知道是不是本来就没有这个功能。
Dailourcy
帖子: 7
注册时间: 2010-09-18 15:24

Re: Ubuntu9.10下fcitx4.0.1安装的问(编译/PPA安装均失败)

#8

帖子 Dailourcy » 2011-04-04 13:39

哦,安装完成后必须要重启……
回复