pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #797: Error installing pgvector on Windows
6+ messages / 5 participants
[nested] [flat]

* [pgvector/pgvector] issue #797: Error installing pgvector on Windows
@ 2025-03-10 02:34 "Riddhimaan-Senapati (@Riddhimaan-Senapati)" <noreply+Riddhimaan-Senapati@github.com>
  0 siblings, 0 replies; 6+ messages in thread

From: Riddhimaan-Senapati (@Riddhimaan-Senapati) @ 2025-03-10 02:34 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I am getting this error when trying to install pgvector on my windows laptop after following the installation guidelines

![Image](https://github.com/user-attachments/assets/3c6340c5-51a3-47d5-8415-2c2a09854bcd)

This is the error message(in text) that I am receiving.

C:\Windows\System32>set "PGROOT=C:\Program Files\PostgreSQL\17"

C:\Windows\System32>cd %TEMP%

C:\Users\riddh\AppData\Local\Temp>git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git
fatal: destination path 'pgvector' already exists and is not an empty directory.

C:\Users\riddh\AppData\Local\Temp>cd pgvector

C:\Users\riddh\AppData\Local\Temp\pgvector>nmake /F Makefile.win

Microsoft (R) Program Maintenance Utility Version 14.43.34808.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\hnsw.c /Fosrc\hnsw.obj
hnsw.c
C:\Program Files\PostgreSQL\17\include\server\access/tupmacs.h(65): error C2196: case value '4' already used
C:\Program Files\PostgreSQL\17\include\server\access/tupmacs.h(197): error C2196: case value '4' already used
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\hnsw.c /Fosrc\hnsw.obj' : return code '0x2'
Stop.

C:\Users\riddh\AppData\Local\Temp\pgvector>nmake /F Makefile.win install

Microsoft (R) Program Maintenance Utility Version 14.43.34808.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\hnsw.c /Fosrc\hnsw.obj
hnsw.c
C:\Program Files\PostgreSQL\17\include\server\access/tupmacs.h(65): error C2196: case value '4' already used
C:\Program Files\PostgreSQL\17\include\server\access/tupmacs.h(197): error C2196: case value '4' already used
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\hnsw.c /Fosrc\hnsw.obj' : return code '0x2'
Stop.


^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #797: Error installing pgvector on Windows
@ 2025-03-10 03:30 ` "ankane (@ankane)" <noreply+ankane@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: ankane (@ankane) @ 2025-03-10 03:30 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @Riddhimaan-Senapati, see https://github.com/pgvector/pgvector/issues/593#issuecomment-2450372191.

^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #797: Error installing pgvector on Windows
@ 2025-03-10 03:30 ` "ankane (@ankane)" <noreply+ankane@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: ankane (@ankane) @ 2025-03-10 03:30 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #797: Error installing pgvector on Windows
@ 2025-05-02 04:00 ` "chanmmn (@chanmmn)" <noreply+chanmmn@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: chanmmn (@chanmmn) @ 2025-05-02 04:00 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I have actually the same error for 3 different machine I have tried .
C:\Program Files\PostgreSQL\17\include\server\access/tupmacs.h(65): error C2196: case value '4' already used

Hope there is some help. 

^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #797: Error installing pgvector on Windows
@ 2025-06-11 21:58 ` "hyr77 (@hyr77)" <noreply+hyr77@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: hyr77 (@hyr77) @ 2025-06-11 21:58 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I had the same problem, this was my solution:

**Use the “**x64** Native Tools Command Prompt for VS” (**not the x86 counterpart**!).**
**C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat**

The build was successful with vcvars64.bat and psql (PostgreSQL) 17.5:

_git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git
cd pgvector
nmake /F Makefile.win
nmake /F Makefile.win install_

Some weird bugs popped up with the x86 version.



^ permalink  raw  [nested|flat] 6+ messages in thread

* Re: [pgvector/pgvector] issue #797: Error installing pgvector on Windows
@ 2025-08-25 10:13 ` "soonil115 (@soonil115)" <noreply+soonil115@github.com>
  4 siblings, 0 replies; 6+ messages in thread

From: soonil115 (@soonil115) @ 2025-08-25 10:13 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I had the same problem, this was my solution:

**Run CMD as an administrator.**

**cd C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build**
**vcvars64.bat**
(When I run vcvars64.bat from File Explorer, CMD appears and then closes immediately.)

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


The build was successful with Visual Studio 2022 Professional(vcvars64.bat) and PostgreSQL 17.6 in Windows 11

^ permalink  raw  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2025-08-25 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-03-10 02:34 [pgvector/pgvector] issue #797: Error installing pgvector on Windows "Riddhimaan-Senapati (@Riddhimaan-Senapati)" <noreply+Riddhimaan-Senapati@github.com>
2025-03-10 03:30 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-03-10 03:30 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-05-02 04:00 ` "chanmmn (@chanmmn)" <noreply+chanmmn@github.com>
2025-06-11 21:58 ` "hyr77 (@hyr77)" <noreply+hyr77@github.com>
2025-08-25 10:13 ` "soonil115 (@soonil115)" <noreply+soonil115@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