Comments (2)
从错误信息上看,好像你混用了64位和32位的程序和库。确保你的pg,scws,zhparser都编译为32位或者64位。
from zhparser.
解决了,官方下载的pg二进制的还是不靠谱,CFLAGS目测无法修改,换成brew install PostgreSQL不报错
二进制安装:
juhua002deMini:zhparser-master juhua002$ /mizi/pgsql-10.1.3/bin/pg_config
BINDIR = /mizi/pgsql-10.1.3/bin
DOCDIR = /mizi/pgsql-10.1.3/doc/postgresql
HTMLDIR = /mizi/pgsql-10.1.3/doc/postgresql
INCLUDEDIR = /mizi/pgsql-10.1.3/include
PKGINCLUDEDIR = /mizi/pgsql-10.1.3/include/postgresql
INCLUDEDIR-SERVER = /mizi/pgsql-10.1.3/include/postgresql/server
LIBDIR = /mizi/pgsql-10.1.3/lib
PKGLIBDIR = /mizi/pgsql-10.1.3/lib/postgresql
LOCALEDIR = /mizi/pgsql-10.1.3/share/locale
MANDIR = /mizi/pgsql-10.1.3/share/man
SHAREDIR = /mizi/pgsql-10.1.3/share/postgresql
SYSCONFDIR = /mizi/pgsql-10.1.3/etc/postgresql
PGXS = /mizi/pgsql-10.1.3/lib/postgresql/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--with-icu' '--prefix=/mnt/hgfs/pginstaller.auto/server/staging_cache/osx.build' '--with-ldap' '--with-openssl' '--with-perl' '--with-python' '--with-tcl' '--with-bonjour' '--with-pam' '--enable-thread-safety' '--with-libxml' '--with-uuid=e2fs' '--with-includes=/opt/local/Current/include/libxml2:/opt/local/Current/include:/opt/local/Current/include/security' '--docdir=/mnt/hgfs/pginstaller.auto/server/staging_cache/osx.build/doc/postgresql' '--with-libxslt' '--with-libedit-preferred' '--with-gssapi' 'CFLAGS=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -arch i386 -arch x86_64 -O2' 'LDFLAGS=-L/opt/local/Current/lib' 'ICU_CFLAGS=-I/opt/local/Current/include' 'ICU_LIBS=-L/opt/local/Current/lib -licuuc -licudata -licui18n'
CC = gcc
CPPFLAGS = -DFRONTEND -I/opt/local/Current/include -I/opt/local/20151229/include/libxml2 -I/opt/local/Current/include/libxml2 -I/opt/local/Current/include
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -mmacosx-version-min=10.8 -arch i386 -arch x86_64 -O2
CFLAGS_SL =
LDFLAGS = -L../../src/common -L/opt/local/Current/lib -L/opt/local/20151229/lib -Wl,-dead_strip_dylibs
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -ledit -lm
VERSION = PostgreSQL 10.1
brew install安装:
juhua002deMini:zhparser-master juhua002$ /usr/local/bin/pg_config
BINDIR = /usr/local/Cellar/postgresql/10.1/bin
DOCDIR = /usr/local/Cellar/postgresql/10.1/share/doc/postgresql
HTMLDIR = /usr/local/Cellar/postgresql/10.1/share/doc/postgresql
INCLUDEDIR = /usr/local/Cellar/postgresql/10.1/include
PKGINCLUDEDIR = /usr/local/Cellar/postgresql/10.1/include
INCLUDEDIR-SERVER = /usr/local/Cellar/postgresql/10.1/include/server
LIBDIR = /usr/local/lib
PKGLIBDIR = /usr/local/lib/postgresql
LOCALEDIR = /usr/local/Cellar/postgresql/10.1/share/locale
MANDIR = /usr/local/Cellar/postgresql/10.1/share/man
SHAREDIR = /usr/local/share/postgresql
SYSCONFDIR = /usr/local/etc/postgresql
PGXS = /usr/local/lib/postgresql/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--disable-debug' '--prefix=/usr/local/Cellar/postgresql/10.1' '--datadir=/usr/local/share/postgresql' '--libdir=/usr/local/lib' '--sysconfdir=/usr/local/etc' '--docdir=/usr/local/Cellar/postgresql/10.1/share/doc/postgresql' '--enable-thread-safety' '--with-bonjour' '--with-gssapi' '--with-ldap' '--with-openssl' '--with-pam' '--with-libxml' '--with-libxslt' '--with-perl' '--with-tcl' '--with-tclconfig=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Tcl.framework' '--with-uuid=e2fs' 'CC=clang' 'LDFLAGS=-L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib' 'CPPFLAGS=-I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include' 'PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig' 'PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12'
CC = clang
CPPFLAGS = -DFRONTEND -I/usr/local/opt/openssl/include -I/usr/local/opt/readline/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument -O2
CFLAGS_SL =
LDFLAGS = -L../../src/common -L/usr/local/opt/openssl/lib -L/usr/local/opt/readline/lib -Wl,-dead_strip_dylibs
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lm
VERSION = PostgreSQL 10.1
from zhparser.
Related Issues (20)
- 请教一个问题,如何查看当前的 zhparser config 开启了那些分词组合?(请看例子) HOT 1
- 自定义词库 2.1 该如何备份,然后在另一个主机上恢复? HOT 2
- 自定义词典没有按长词优先 HOT 2
- 如何自定义rules.ini
- Inexistant default version ? HOT 1
- 重复分词 HOT 4
- 支持postgresql14吗
- 如何设置可以使分词搜索的结果中包含“只有部分关键词”的条目? HOT 1
- 安装成功后无法添加扩展,找不到zhparser.control HOT 1
- to_tsquery 返回结果为FOLLOWBY(<->),而不是 &,是否有配置项调整? HOT 2
- incompatible library "/opt/postgresql-14/lib/zhparser.so": version mismatch
- 2.1版本没有发布release版本,最新的版本是0.2.0,希望更新下 HOT 1
- 请问下怎样配置可以将一段话中包含空格的,也将空格进行分词返回? HOT 2
- 编译错误:无pgxs路径 HOT 1
- ts_headline查询结果中空格被去除了
- 自定义zhprs_custom_word不生效 HOT 4
- 编译报错:gcc: error: unrecognized command line option ‘-Wimplicit-fallthrough=3’ HOT 1
- 插件无法和checksum一起用: ERROR: invalid segment number 0 in file "zhparser_dict_template1.tag" HOT 1
- make问题 HOT 5
- 分词结果缺失
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zhparser.