奇怪,运行不成功? 我在/home/zz/libcws下编译了libscws.a 然后执行gcc -o test -I/home/zz/libscws -L/home/zz/libcws test.c -lscws 提示: /usr/bin/ld: cannot find -lscws collect2: ld returned 1 exit status 是什么地方出错了?
...重启的时候停卡 xs-searchd 的时候非常的慢 [root@edu ~]# /usr/local/xunsearch/bin/xs-ctl.sh -b inet restart INFO: stopping server[xs-indexd] (BIND:8383) .... [OK] INFO: re-starting server[xs-indexd] ... (BIND:8383) INFO: stopping server[xs-searchd] (BIND:8384) ......................
从结果看应该是 scws_set_dict(s, "/usr/local/etc/dict_chs_gbk.xdb", SCWS_XDICT_MEM); 这句话出了问题, 也就是可能词典不正确. 但这个词典目前测试在64位系统下也是可以正常工作的, 检查一下词典的字节数是不是没有下载完整.
..... yes checking: Command not found. gateway2# checking for scws... yes: /usr/local/xunsearch checking for pread... yes checking: Command not found. checking for scws_new in -lscws... no gateway2# configure: error: scws_new() NOT found in libscws, please check it first. checking for any protot...
... [scws] extension=scws.so scws.default.charset=utf8 scws.default.fpath=/usr/local/scws/etc 而php 是这样 //分词 $so = scws_new(); $so->set_charset('utf8'); // 这里没有调用 set_dict 和 set_rule 系统会自动试调用 ini 中指定路径下的词典和规则文件 $so->a...
...); //设置分词所用词典(此处使用utf8的词典) $so->set_dict('/usr/local/scws/etc/dict.utf8.xdb'); //设置分词所用规则 $so->set_rule('/usr/local/scws/etc/rules.utf8.ini'); //分词前去掉标点符号 $so->set_ignore(false); //是否复式分割,如“中国人”返回...
...te='xsxs89757' pid='460' dateline='1327889252'] [XSException] ../../../../usr/local/xunse/sdk/php/lib/XS.php(1464): Unexpected respond in search {CMD:129, ARG:514} 还是该错误 已更新和设置 无法解决 [/quote] 这个错是数据库没有准备就绪吧,是不是你还没有导...
...rset(s, "gbk"); scws_set_multi(s, 1); scws_set_dict(s, "/usr/local/etc/dict_chs_gbk.xdb", SCWS_XDICT_MEM); scws_set_rule(s, "/usr/local/etc/rules.ini"); scws_send_text(s, text, strlen(text)); while (res = cur = scws_get_result(s)) { ...
:s错误:[XSException] ../../../usr/local/xunsearch/sdk/php/lib/XS.php(2331): None of database avaiable(S#506) 求助啊!!!!1
Fatal error: Uncaught [XSException] ../../xunsearch/sdk/php/lib/XS.php(2369): Failed to open file(S#513) thrown in /usr/local/xunsearch/sdk/php/lib/XS.php on line 2369