Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make问题 #78

Open
zbximo opened this issue Jun 5, 2023 · 5 comments
Open

make问题 #78

zbximo opened this issue Jun 5, 2023 · 5 comments

Comments

@zbximo
Copy link

zbximo commented Jun 5, 2023

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

@zlianzhuang
Copy link
Collaborator

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

@zbximo
Copy link
Author

zbximo commented Jun 6, 2023

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: *** 无目标。 停止。

@zlianzhuang
Copy link
Collaborator

/data/pg15.2/bin/pg_config

执行下看看具体的内容,

@maguon
Copy link

maguon commented Nov 21, 2023

/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.

@maguon
Copy link

maguon commented Nov 21, 2023

/data/pg15.2/bin/pg_config

执行下看看具体的内容,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants