: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
...添加: 了 1.0 1.0 e 通过:scws_add_dict(s, "/usr/local/scws/etc/userdict.utf8.xdb", SCWS_XDICT_XDB); 结果还是不对。
...引,要如何操作呢?如下终端(ssh中执行的)语句:/usr/local/xunsearch/sdk/php/util/Indexer.php --rebuild --source=mysql://root:111111@localhost/dbo --sql="select * from user" --project=sokc,怎么写php脚本(类似后台的东西)达到同样的建立索引效果呢?
[root@IDC-D-1115 etc]# /usr/local/scws/bin/scws -i 我今天看到了一条狗 我 今 天 看 到 了 一 条 狗 +--[scws(scws-cli/1.1.8)]----------+ | TextLen: 18 | | Prepare: 0.0001 (sec) | | Segment: 0.0001 (sec) | +--------------------------------+ ...
命令行方式返回正确 scws 北京大学 -c utf8 -d /usr/local/scws/etc/dict.utf8.xdb -M 3 北京大学 北京 大学
编译scws调试版本: ./configure --prefix=/usr/local/scws --enable-developer gmake 之后在cli和libscws目录生成了Makefile文件,其中CFLAGS=-g -O2,这里最好把O2选项去掉,避免调试的时候出现源码和代码对应不上的情况。
你确定 --with-scws=/usr/local/scws 这个目录下的 lib/目录下是否有 libscws.*** 的文件
...) #0 [internal function]: xs_error_handler(2, 'xcache_get(): x...', '/usr/local/xuns...', 431, Array) 如果只是缓存配置文件的话,缓存不缓存倒没所谓了
必须先安装scws主体啊,在安装phpext/之前。 cd scws-1.1.2/ ; ./configure --prefix=/usr/local/scws ; make ; make install 然后再做你的上述步骤!