pgspider / parquet_s3_fdw

ParquetS3 Foreign Data Wrapper for PostgresSQL
Other
200 stars 28 forks source link

Getting this error while running make install #7

Open thebrijpatel2 opened 2 years ago

thebrijpatel2 commented 2 years ago

Makefile:45: /contrib/contrib-global.mk: No such file or directory make: *** No rule to make target '/contrib/contrib-global.mk'. Stop.

Operating System : Ubuntu 20. All dependencies were installed.

hrkuma commented 2 years ago

Sorry for late response.

If you do not build this FDW in PostgreSQL source tree (contrib/), you needs USE_PGXS=1.

make install USE_PGXS=1 or make install USE_PGXS=1 PG_CONFIG=/path/to/pg_config

If you have already used this option, could you write your steps in details?

mgyboom commented 2 years ago

Sorry for late response.

If you do not build this FDW in PostgreSQL source tree (contrib/), you needs USE_PGXS=1.

make install USE_PGXS=1 or make install USE_PGXS=1 PG_CONFIG=/path/to/pg_config

If you have already used this option, could you write your steps in details?

hello, when i execute "make install USE_PGXS=1 PG_CONFIG=/path/to/pg_config", it happens : g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -std=c++11 -O3 -fPIC -I. -I./ -I/usr/include/postgresql/13/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/common.o src/common.cpp In file included from src/common.cpp:14: src/common.hpp:24:10: fatal error: postgres.h: No such file or directory 24 | #include "postgres.h" | ^~~~ compilation terminated. make: *** [: src/common.o] Error 1

geoyogesh commented 2 years ago

sudo apt-get install -y postgresql-server-dev-{version}

hrkuma commented 2 years ago

-I/usr/include/postgresql/13/server src/common.hpp:24:10: fatal error: postgres.h: No such file or directory

Regarding to the above errors, I think it is caused missing development headers like geoyogesh's comment.

samirsinha11 commented 1 year ago

I am using PostgreSql of Amazon RDS. I want to use this extension but I am getting below error. Is there any way to use parquet_s3_fwd/any other similar extension for RDS?

ERROR: could not open extension control file "/rdsdbbin/postgres-14.7.R1/share/extension/parquet_s3_fdw.control": No such file or directory

SQL state: 58P01Query returned successfully in 333 msec.

hrkuma commented 1 year ago

Hi,

I am using PostgreSql of Amazon RDS. I want to use this extension but I am getting below error. Is there any way to use parquet_s3_fwd/any other similar extension for RDS?

I think your question is not related to this issue (#7).

And then your question is about Amazon RDS service using PostgreSQL extensions. Maybe the available extensions are limited to specific modules. https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.Extensions.html