From 91315dfeff36e3da8dfa1821eb568b8e20af01f0 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 1 Apr 2023 17:42:44 -0700 Subject: [PATCH] Added additional instructions for Ubuntu, Debian, and Windows [skip ci] --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6cddf89..bc7845c 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,29 @@ Function | Description --- | --- avg(vector) → vector | arithmetic mean -## Additional Installation Methods +## Additional Installation Instructions + +### Ubuntu and Debian + +If compilation fails with `fatal error: postgres.h: No such file or directory`, make sure Postgres development files are installed on the server. + +```sh +sudo apt-get install postgresql-server-dev-15 +``` + +Note: Replace `15` with your Postgres server version + +### Windows + +Support for Windows is currently experimental. Use `nmake` to build: + +```cmd +set "PGROOT=C:\Program Files\PostgreSQL\15" +git clone --branch v0.4.1 https://github.com/pgvector/pgvector.git +cd pgvector +nmake /F Makefile.win +nmake /F Makefile.win install +``` ### Docker