amutu / zhparser

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make问题

zbximo opened this issue · comments

commented

os:ubuntu18.04
gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
执行make后
make: *** 无目标。 停止。

大概率 是你的环境没有配置 PG_CONFIG , 参考readme

commented

echo $PG_CONFIG
/data/pg15.2/bin/pg_config

ls /data/pg15.2/bin/pg_config
/data/pg15.2/bin/pg_config

/tmp/zhparser$ make
make: *** 无目标。 停止。

/data/pg15.2/bin/pg_config

执行下看看具体的内容,

/usr/pgsql-15/bin/pg_config
执行后返回
CPPFLAGS = -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
CFLAGS_SL = -fPIC
LDFLAGS = -Wl,--as-needed -L/usr/lib64/llvm5.0/lib -L/usr/lib64 -Wl,--as-needed -Wl,-rpath,'/usr/pgsql-15/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -lzstd -llz4 -lxslt -lxml2 -lpam -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm

依然提示
make: pg_config: No such file or directory
make: *** No targets. Stop.

/data/pg15.2/bin/pg_config

执行下看看具体的内容,

psql 14 是没有这个问题的
是不是 对于psql 的15和16 没做适配