From: BBiswal-Git (@BBiswal-Git) <noreply+BBiswal-Git@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #870: cant install pgvector on windows
Date: Wed, 17 Jun 2026 08:17:15 +0000
Message-ID: <gh-pgvector-pgvector-870-c4727602931@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-870@github.com>
References: <gh-pgvector-pgvector-870@github.com>
> so what i did to solve the above error is I had to use the x64 Native Tools Command Prompt specifically
>
> so i searched for "x64 Native Tools Command Prompt for VS 2022" in the Start menu then opened it and i ran these commands
>
> ```
> set "PGROOT=C:\laragon\bin\postgresql\postgresql-17.5-2"
> cd %TEMP%\pgvector
> nmake /F Makefile.win clean
> nmake /F Makefile.win
> nmake /F Makefile.win install
> ```
>
> After battling for a whole day and night with pgvector on Windows 11... 🥵⚔️🧠
>
> Hooray! It's finally installed successfully! 🎉💪🚀
I have followed all mentioned steps, but I am still getting the below error, while executing the command "nmake /F Makefile.win". Can someone please help me.
Microsoft (R) Program Maintenance Utility Version 14.51.36247.0
Copyright (C) Microsoft Corporation. All rights reserved.
cl /nologo /I"C:\Program Files\PostgreSQL\18\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\18\include\server\port\win32" /I"C:\Program Files\PostgreSQL\18\include\server" /I"C:\Program Files\PostgreSQL\18\include" /O2 /fp:fast /c src\hnswvacuum.c /Fosrc\hnswvacuum.obj
hnswvacuum.c
src\hnswvacuum.c(52): error C2198: 'void vacuum_delay_point(bool)': too few arguments for call
src\hnswvacuum.c(348): error C2198: 'void vacuum_delay_point(bool)': too few arguments for call
src\hnswvacuum.c(460): error C2198: 'void vacuum_delay_point(bool)': too few arguments for call
NMAKE : fatal error U1077: 'cl /nologo /I"C:\Program Files\PostgreSQL\18\include\server\port\win32_msvc" /I"C:\Program Files\PostgreSQL\18\include\server\port\win32" /I"C:\Program Files\PostgreSQL\18\include\server" /I"C:\Program Files\PostgreSQL\18\include" /O2 /fp:fast /c src\hnswvacuum.c /Fosrc\hnswvacuum.obj' : return code '0x2'
Stop.