#进入我的下载目录cd /mydownload#下载源码包wget http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2tar xvjf scws-1.2.3.tar.bz2# 编译安装cd scws-1.2.3./configure --prefix=/usr/local/scwsmakemake install# 下载词库cd /usr/local/scws/etcwget http://www.xunsearch.com/scws/down/scws-dict-chs-gbk.tar.bz2wget http://www.xunsearch.com/scws/down/scws-dict-chs-utf8.tar.bz2tar xvjf scws-dict-chs-gbk.tar.bz2tar xvjf scws-dict-chs-utf8.tar.bz2# 重新回到SCWS源码 编译PHP扩展cd /mydownload/scws-1.2.3/phpextphpize/www/server/php/72/bin/php-config./configure --with-scws=/usr/local/scws --with-php-config=/www/server/php/72/bin/php-configmakemake install# php.ini添加PHP扩展php --iniecho 'extension=scws.so'>>/www/server/php/72/etc/php.iniecho 'scws.default.charset=utf8'>>/www/server/php/72/etc/php.iniecho 'scws.default.fpath=/usr/local/scws/etc'>>/www/server/php/72/etc/php.ini
关于中文分词 PHP 扩展 SCWS 安装方法的文章就分享到这,如果对你有帮助欢迎继续关注我们哦
本文来自投稿,不代表重蔚自留地立场,如若转载,请注明出处https://www.cwhello.com/42112.html
如有侵犯您的合法权益请发邮件951076433@qq.com联系删除