pg.ddx.io pgvector/pgvector GitHub issues and pull requests
help / color / mirror / Atom feedFrom: edstevo (@edstevo) <noreply+edstevo@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #834: Ubuntu 20.04: fatal error: postgres.h: No such file or directory
Date: Tue, 13 May 2025 11:29:40 +0000
Message-ID: <gh-pgvector-pgvector-834-c2876127548@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-834@github.com>
References: <gh-pgvector-pgvector-834@github.com>
I'm trying to install this on digital ocean - I've followed the installation notes and set the PG_CONFIG:
```
forge@GKXN60JIV2:/tmp/pgvector$ echo $PG_CONFIG
/usr/lib/postgresql/17/bin/pg_config
```
I run sudo --preserve-env=PG_CONFIG make install:
```
forge@GKXN60JIV2:/tmp/pgvector$ sudo --preserve-env=PG_CONFIG make install
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fno-omit-frame-pointer -march=native -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math -fPIC -fvisibility=hidden -I. -I./ -I/usr/include/postgresql/17/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=3 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/bitutils.o src/bitutils.c
src/bitutils.c:1:10: fatal error: postgres.h: No such file or directory
1 | #include "postgres.h"
| ^~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: src/bitutils.o] Error 1
```
it seems to still be pointing to the wrong pg instance?
view thread (8+ messages) latest in thread
Message-ID: <gh-pgvector-pgvector-834-c2876127548@github.com>
Permalink: ../gh-pgvector-pgvector-834-c2876127548@github.com/
·
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox