...8' dateline='1291049346'] 词库没有正确加载,你检查一下 /usr/local/scws/etc/ 下的 .xdb 的文件属性,默认.tar.bz2 解开有可能是600,建议 chmod a+r /usr/local/scws/etc/* [/quote] 非常感谢,被这个问题折磨了1天,原来是权限问题
...@opensuse:~/Downloads/scws/scws-1.2.1/phpext> ./configure --with-scws=/usr/local/scws --with-php-config=/usr/bin/php-config configure: loading site script /usr/share/site/x86_64-unknown-linux-gnu checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep...
...scws 的相關訊息, 產生的 scws.so 檔案大小如下 # ls -l /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626 -rwxr-xr-x 1 root root 235919 7月 11 07:07 memcache.so -rwxr-xr-x 1 root root 72844 7月 16 14:26 scws.so -rwxr-xr-x 1 root root 117220 7月 15 00:13 sphinx.so ...
...d8.2里安装php的扩展出现 checking for scws.h... yes, found in /usr/local/scws checking for scws_new in -lscws... no configure: error: Incorrect scws library 有没有遇到过这种情况,, cd phpext/ phpize ./configure --with-scws=/usr/local/scws ..... configure: error: Incorr...
...com/scws scws.default.charset => utf8 => utf8 scws.default.fpath => /usr/local/scws/etc => /usr/local/scws/etc [/code] 2. 测试 PHP代码 [code] [hightman@d1 hightman]$ cat 1.php
...r_en : attr_un); // modified by hightman[hr] [root@estar scws-1.1.5]# /usr/local/bin/scws -A -d "/usr/local/scws/etc/dict.xdb" "LG集团5.3%" LG/en 集团/n 5.3/en %/un +--[scws(scws-cli/1.1.5)]----------+ | TextLen: 10 | | Prepare: 0.0002 (sec) | | Segment: 0.0002 ...
ln -s /usr/local/scws/lib/libscws.so.2.0 /usr/local/scws/lib/libscws.so
...指定 dict字典和rule规则文件就可以了 $cws->set_dict('/usr/local/scws/etc/dict_chs_utf8.xdb'); $cws->set_rule('/usr/local/scws/etc/rules.utf8.ini');
请问你安装了 scws 主程序了吗? /usr/local/scws /usr/local/scws/lib/libscws.so 存在? 也就是 scws-1.1.3.tar.bz2 解压后应先在主目录下安装 scws,然后再进入 phpext/ 来安装
...='hightman' pid='3401' dateline='1361417691'] 你确定 --with-scws=/usr/local/scws 这个目录下的 lib/目录下是否有 libscws.*** 的文件 [/quote] 我的是64位的系统,只有一个叫lib64的目录 [code]loading@opensuse:~> ls -ltr /usr/local/scws/lib64/ 总用量 180 -rwx...