o,字打错了,我在自己的测试应用里(xunsearch 1.0.1正式版),用searchskel生成的search代码搜索第一个字母为大写英文字母的关键字时,高亮显示没有了(搜索记录是正确的),第一个字母小写时高亮有的。 http://www.xunsearch.com/search?...
写了一行脚本,将代码转为 UTF-8 编码的源文件: #!/bin/bash for i in `find ./ -type f |grep -v 'batch' ` ; do iconv $i -f gbk -t utf8 -o ${i}.tmp && mv ${i}.tmp $i ; done
...g不会出错,但是PHP无法加载 # make /bin/sh /niran/fenci/scws-1.1.2/phpext/libtool --mode=compile gcc -I. -I/niran/fenci/scws-1.1.2/phpext -DPHP_ATOM_INC -I/niran/fenci/scws-1.1.2/phpext/include -I/niran/fenci/scws-1.1.2/phpext/main -I/niran/fenci/scws-1.1.2/phpext -I/usr/local/php/inc...
gcc -o test -I/usr/local/scws/include/scws -L /usr/local/scws/lib test.c -lscws -Wl,--rpath -Wl, /usr/local/scws/lib /usr/bin/ld: cannot find /usr/local/scws/lib: File format not recognized collect2: ld returned 1 exit status Hightman 能否解决下?
...scws的源码里有很多地方都没有检测malloc是否成功,如scws.c:1527行附近的下面两行, top = (scws_top_t) malloc(sizeof(struct scws_topword)); top->weight = cur->idf; 182行的下面两行 res = (scws_res_t) malloc(sizeof(struct scws_result)); \ res->off = o; 234行的...
... 我的php编译大致是这样的 ./configure --prefix=/usr/local/php51 --with-config-file-path=/usr/local/php51/etc --with-mysql=/usr/local/mysql51 --with-mysqli=/usr/local/mysql51/bin/mysql_config --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with...
最后一步出现这个错误 [root@64646155 phpext]# make && make install /bin/sh /niran/fenci/scws/phpext/libtool --mode=compile cc -I. -I/niran/fenci/scws/phpext -DPHP_ATOM_INC -I/niran/fenci/scws/phpext/include -I/niran/fenci/scws/phpext/main -I/niran/fenci/scws/phpext -I/usr/local/php/i...
[code]loading@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... ...
...题!无法解决! libscws已经安装成功! 安装php扩展: 1. 执行phpize信息: [code]Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 Configuring for: PHP Api Version: 20090626 Zend Module Api...
...程starce就不动,另外一个提示Resource temporarily unavailable 14179 ? 00:00:00 xs-searchd 14186 ? 00:00:01 xs-searchd 14193 ? 00:00:00 xs-searchd 14212 pts/0 00:00:00 ps 31168 ? 00:00:47 xs-indexd 31171 ? 00:00:00 xs-searchd [root@edu ~]# strace -p 1...