Sample Header Ad - 728x90

pgAudit Install Not Working Because of Makefile (Postgres 15)

0 votes
0 answers
110 views
Hi My Makefile supposedly doesnt have an install target. How do I fix this? I dont understand how it even worked for others. Also, I cant use an updated version of Postgres due to restrictions at my job, for anyone wondering. Also, here's the instructions I followed: Clone the pgAudit extension:
git clone https://github.com/pgaudit/pgaudit.git 
Change to pgAudit directory:
cd pgaudit
Checkout REL_15_STABLE branch (note that the stable branch may not exist for unreleased versions of PostgreSQL):
git checkout REL_15_STABLE
Build and install pgAudit:
make install USE_PGXS=1 PG_CONFIG=/usr/pgsql-15/bin/pg_config
----- This is the error:
process_begin: CreateProcess(NULL, sh.exe -c "/usr/pgsql-15/bin/pg_config --pgxs", ...) failed.
Makefile:15: pipe: No error
make: *** No rule to make target 'install'.  Stop.
This is my Makefile, which I didnt change from what I found at https://github.com/pgaudit/pgaudit/releases/tag/1.7.0
# contrib/pg_audit/Makefile

MODULE_big = pgaudit
OBJS = pgaudit.o $(WIN32RES)

EXTENSION = pgaudit
DATA = pgaudit--1.7.sql
PGFILEDESC = "pgAudit - An audit logging extension for PostgreSQL"

REGRESS = pgaudit
REGRESS_OPTS = --temp-config=$(top_srcdir)/contrib/pgaudit/pgaudit.conf

ifdef USE_PGXS
PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
else
subdir = contrib/pgaudit
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif

EXTRA_INSTALL += contrib/pg_stat_statements
Asked by MDBA95 (1 rep)
Dec 6, 2024, 11:04 PM
Last activity: Dec 7, 2024, 01:16 AM