wget http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2
tar xvjf scws-1.2.3.tar.bz2
cd scws-1.2.3
./configure --prefix=/usr/local/scws
make & make install
ls -al /usr/local/scws/lib/libscws.la
/usr/local/scws/bin/scws -h
cd /usr/local/src/scws-1.2.3/phpext
/usr/bin/phpize
./configure --with-scws=/usr/local/scws/ --with-php-config=/usr/local/php/bin/php-config
cd /usr/local/scws/etc
wget http://www.xunsearch.com/scws/down/scws-dict-chs-gbk.tar.bz2
wget http://www.xunsearch.com/scws/down/scws-dict-chs-utf8.tar.bz2
tar xvjf scws-dict-chs-gbk.tar.bz2
tar xvjf scws-dict-chs-utf8.tar.bz2
autoconf --version
automake --version
[scws]
extension = scws.so
scws.default.charset = gbk
scws.default.fpath = /usr/local/scws/
cp /usr/local/scws/etc/rules.utf8.ini /home/wwwroot/xxx/tools/rules.utf8.ini
cp /usr/local/scws/etc/dict.utf8.xdb /home/wwwroot/xxx/tools/dict.utf8.xdb
重启服务
如果本文对您有所帮助,请支持下本站哦!!!^_^