pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: DharaniRamNallapaneni (@DharaniRamNallapaneni) <noreply+DharaniRamNallapaneni@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #870: cant install pgvector on windows
Date: Fri, 07 Aug 2026 13:27:05 +0000
Message-ID: <gh-pgvector-pgvector-870-c5217649765@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-870@github.com>
References: <gh-pgvector-pgvector-870@github.com>

Please follow these steps if the issue still not resolved.

search for x64 Native Tools Command Prompt for VS and run it as an Administrator.

C:\Windows\System32>set "PGROOT=C:\Program Files\PostgreSQL\18"
cd pgvector
nmake /F Makefile.win

  Here you can observer vector.dll binary file created.
 src\vector.obj "C:\Program Files\PostgreSQL\18\lib\postgres.lib" /link /DLL /OUT:vector.dll
   Creating library vector.lib and object vector.exp
        copy sql\vector.sql sql\vector--0.8.6.sql
        1 file(s) copied.


nmake /F Makefile.win install

    Here you can observe the copying of the files.
        copy vector.dll "C:\Program Files\PostgreSQL\18\lib"
        1 file(s) copied.
        copy vector.control "C:\Program Files\PostgreSQL\18\share\extension"
        1 file(s) copied.
        copy sql\vector--*.sql "C:\Program Files\PostgreSQL\18\share\extension"
         
        
      copy src\halfvec.h "C:\Program Files\PostgreSQL\18\include\server\extension\vector"
        1 file(s) copied.

       copy src\sparsevec.h "C:\Program Files\PostgreSQL\18\include\server\extension\vector"
        1 file(s) copied.

       copy src\vector.h "C:\Program Files\PostgreSQL\18\include\server\extension\vector"
        1 file(s) copied.


Test it from postgre sql:
  CREATE EXTENSION vector;
  SELECT extname FROM pg_extension;




view thread (12+ messages)

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