被自己囧到了,再一次安装失败……(已解决,公布囧事给大家开心一下)

42 views
Skip to first unread message

刘鑫

unread,
Apr 13, 2009, 12:52:10 PM4/13/09
to nlpb...@googlegroups.com
debian,新装的,服务器版,没有x。postgres 8.3.6,apt进来的,cmak、g++、crf++一切都按文档过程来。
除了训练文件(index目录)是直接下载的,其它跟以前配置成功的ubuntu环境都一样过程。
出现以下错误以后,我又把以前ubuntu环境上训练的data和index复制过来,问题依旧。

astinus=# \i /usr/share/postgresql/8.3/contrib/chinese_parser.sql
SET
psql:/usr/share/postgresql/8.3/contrib/chinese_parser.sql:8: ERROR:  can not load bamboo
psql:/usr/share/postgresql/8.3/contrib/chinese_parser.sql:13: ERROR:  can not load bamboo
psql:/usr/share/postgresql/8.3/contrib/chinese_parser.sql:18: ERROR:  can not load bamboo
psql:/usr/share/postgresql/8.3/contrib/chinese_parser.sql:23: ERROR:  can not load bamboo
psql:/usr/share/postgresql/8.3/contrib/chinese_parser.sql:31: ERROR:  function chineseprs_start(internal, integer) does not exist
psql:/usr/share/postgresql/8.3/contrib/chinese_parser.sql:33: ERROR:  text search parser "chineseparser" does not exist
psql:/usr/share/postgresql/8.3/contrib/chinese_parser.sql:39: ERROR:  duplicate key value violates unique constraint "pg_ts_dict_dictname_index"
psql:/usr/share/postgresql/8.3/contrib/chinese_parser.sql:41: ERROR:  text search configuration "chinesecfg" does not exist


结果在命令行下执行bamboo才知道,是libcrfpp.so.0没找到。设置$PATH无效,干脆走野路子,cp了一个到/usr/lib(囧……)。
掩面……大家嘲笑我这个野生程序员吧……

detrox上传的index很好用,我现在用的就是,很感谢。

--
杀人放火金腰带,补路修桥无尸骸。

……

劉鑫
March.Liu
Reply all
Reply to author
Forward
0 new messages