amutu / zhparser

zhparser is a PostgreSQL extension for full-text search of Chinese language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

安装成功后无法添加扩展,找不到zhparser.control

Solawhite opened this issue · comments

commented

CentOS Linux release 7.9.2009 (Core)
postgresql 13

安装一切顺利,没有指定PG_CONFIG

添加扩展报错
could not open extension control file "/usr/pgsql-13/share/extension/zhparser.control": No such file or directory

搜索发现zhparser.control在
/usr/share/pgsql/extension/zhparser.control

是make install 时需要配置什么吗?

commented

问题解决,卸载原有devel,安装 postgresql13-devel.x86_64

make install 后启动扩展报错:
ERROR: incompatible library "/usr/pgsql-13/lib/zhparser.so": version mismatch
DETAIL: Server is version 13, library is version 9.2.
重新安装
make uninstall
make clean
make & make install