pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: bloodykheeng (@bloodykheeng) <noreply+bloodykheeng@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #870: cant install pgvector on windows
Date: Thu, 03 Jul 2025 11:45:47 +0000
Message-ID: <gh-pgvector-pgvector-870@github.com> (raw)

i installed visual studio 2022 build tools and lanched the terminal through it
i also installed posgresql using laragon software

but when i follow the installation commands nmake is failing to work

these are the commands i ran

```
set "PGROOT=C:\Program Files\PostgreSQL\17"
cd %TEMP%
git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git
cd pgvector
nmake /F Makefile.win
nmake /F Makefile.win install
```

this is the error am getting
```
C:\Users\BK\AppData\Local\Temp\pgvector>nmake /F Makefile.win

Microsoft (R) Program Maintenance Utility Version 14.44.35211.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /nologo /I"C:\Program Files\PostgreSQL\17\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\17\include\server\port\win32" /I"C:\Program Files\PostgreSQL\17\include\server" /I"C:\Program Files\PostgreSQL\17\include"   /O2 /fp:fast /c src\bitutils.c /Fosrc\bitutils.obj
bitutils.c
src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
NMAKE : fatal error U1077: 'cl /nologo /I"C:\Program Files\PostgreSQL\17\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\17\include\server\port\win32" /I"C:\Program Files\PostgreSQL\17\include\server" /I"C:\Program Files\PostgreSQL\17\include"   /O2 /fp:fast /c src\bitutils.c /Fosrc\bitutils.obj' : return code '0x2'
Stop.
```

this is the folder path when i extracted postgresql zip file
```
C:\laragon\bin\postgresql\postgresql-17.5-2
```

my postgresql is working well with laragon just am not getting it why nmake is failing to build

view thread (12+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-870@github.com>
Permalink:  ../gh-pgvector-pgvector-870@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