From: lovgrandma (@lovgrandma) <noreply+lovgrandma@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #471: Cant find PGXS during install
Date: Sat, 24 Feb 2024 15:34:38 +0000
Message-ID: <gh-pgvector-pgvector-471@github.com> (raw)
I just wanted to share this even though it seems obvious but it took me a while to resolve on an AWS Fedora EC2 instance. I had libpq installed via yum but postgres installed via dnf. In my case I had to run sudo yum remove libpq-devel-15.0-2.amzn2023.0.1.x86_64 when it showed the conflicting dependency when running dnf install postgresql15-server-devel.x86_64
Ensure that you have installed the following:
postgresql<version>
postgresql<version>-server-devel
postgresql<version>-upgrade
postgresql<version>-contrib
via the SAME package manager. Do not install postgres via dnf and libpq devel via yum or else it will not be able to find the pgxs file.
If you have installed appropriate dependencies with same package manager you should be able to install under EC2 instance (non-RDS)
Then you can use simple linux git install instructions for pgvector