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

Getting this error while running make install #7

Open
thebrijpatel2 opened this issue Nov 17, 2021 · 6 comments
Open

Getting this error while running make install #7

thebrijpatel2 opened this issue Nov 17, 2021 · 6 comments

Comments

@thebrijpatel2
Copy link

thebrijpatel2 commented Nov 17, 2021

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
Copy link

hrkuma commented Jan 5, 2022

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
Copy link

mgyboom commented Mar 24, 2022

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
Copy link

geoyogesh commented May 25, 2022

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

@hrkuma
Copy link

hrkuma commented May 25, 2022

-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
Copy link

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
Copy link

hrkuma commented Sep 4, 2023

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

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

5 participants