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

Building against Postgres 12 #62

Open
gettimothy opened this issue May 4, 2020 · 1 comment
Open

Building against Postgres 12 #62

gettimothy opened this issue May 4, 2020 · 1 comment

Comments

@gettimothy
Copy link

Howdy,

First, thank you for your work.

I am running openresty and have been using your module against postgres 11 for some time.

I just upgraded to postgresql 12 and during the configure step of openresty

./configure --with-luajit --without-http_redis2_module --with-pcre-jit --with-http_postgres_module -j2

build, I get:

adding module in ../ngx_postgres-1.0
checking for libpq library version 9.1 ... not found
checking for libpq library version 9.0 ... not found
checking for libpq library version 8.4 ... not found
checking for libpq library version 8.3 ... not found
checking for libpq library version 8.2 ... not found
checking for libpq library version 8.1.4 ... not found
checking for libpq library version 8.1.0 ... not found
checking for libpq library version 8.0.8 ... not found
checking for libpq library version 8.0.0 ... not found

I am on Slackware linux 64 bit and pq libs are in the usual spot:

/usr/local/pgsql/lib# ls -al libpq*
-rw-r--r-- 1 root root 317044 May  1 18:35 libpq.a
lrwxrwxrwx 1 root root     13 May  1 18:35 libpq.so -> libpq.so.5.12*
lrwxrwxrwx 1 root root     13 May  1 18:35 libpq.so.5 -> libpq.so.5.12*
-rwxr-xr-x 1 root root 334592 May  1 18:35 libpq.so.5.12*
-rwxr-xr-x 1 root root  30728 May  1 18:35 libpqwalreceiver.so*

Perhaps it is a problem with my machine (postgres works great.) but I thought I would ask you here.

thank you for your time.

@flaki
Copy link

flaki commented May 13, 2021

Fwiw I just built this on FreeBSD 12 & the Postgres 12 client and this configured & built cleanly.

pkg install postgresql12-client

# Use ./configure -h to check for other options
./configure --with-http_v2_module --with-http_postgres_module --with-ipv6
(…)
adding module in ../ngx_postgres-1.0
checking for libpq library (via pg_config) ... found
checking for libpq library version 9.1 ... found
 + ngx_postgres was configured
(…)

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

2 participants