Quantcast
Channel: Active questions tagged audit - Database Administrators Stack Exchange
Viewing all articles
Browse latest Browse all 147

pgAudit Install Not Working Because of Makefile (Postgres 15)

$
0
0

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 errormake: *** 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/MakefileMODULE_big = pgauditOBJS = pgaudit.o $(WIN32RES)EXTENSION = pgauditDATA = pgaudit--1.7.sqlPGFILEDESC = "pgAudit - An audit logging extension for PostgreSQL"REGRESS = pgauditREGRESS_OPTS = --temp-config=$(top_srcdir)/contrib/pgaudit/pgaudit.confifdef USE_PGXSPG_CONFIG = pg_configPGXS := $(shell $(PG_CONFIG) --pgxs)include $(PGXS)elsesubdir = contrib/pgaudittop_builddir = ../..include $(top_builddir)/src/Makefile.globalinclude $(top_srcdir)/contrib/contrib-global.mkendifEXTRA_INSTALL += contrib/pg_stat_statements

Viewing all articles
Browse latest Browse all 147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>