pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
8+ messages / 5 participants
[nested] [flat]

* [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
@ 2024-01-25 09:32 "dev-PankajK (@dev-PankajK)" <noreply+dev-PankajK@github.com>
  0 siblings, 0 replies; 8+ messages in thread

From: dev-PankajK (@dev-PankajK) @ 2024-01-25 09:32 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I am trying to install pgvector extension but whiel running nmake command I am getting below error, how can I resolve this 

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

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

* Re: [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
@ 2024-01-25 09:41 ` "ankane (@ankane)" <noreply+ankane@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: ankane (@ankane) @ 2024-01-25 09:41 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @p2991459, it looks like C++ support for Visual Studio isn't set up correctly ([docs](https://github.com/pgvector/pgvector#windows)). Please use Stack Overflow for additional help.

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

* Re: [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
@ 2024-01-25 09:41 ` "ankane (@ankane)" <noreply+ankane@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: ankane (@ankane) @ 2024-01-25 09:41 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

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

* Re: [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
@ 2025-01-30 11:16 ` "LoicUTC (@LoicUTC)" <noreply+LoicUTC@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: LoicUTC (@LoicUTC) @ 2025-01-30 11:16 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi, same issue while I installed MS Visual Studio properly  as mentionned in the install docs.
@dev-PankajK  : did you find a solution ?

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

* Re: [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
@ 2025-01-30 11:34 ` "dev-PankajK (@dev-PankajK)" <noreply+dev-PankajK@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: dev-PankajK (@dev-PankajK) @ 2025-01-30 11:34 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

> Hi, same issue while I installed MS Visual Studio properly as mentionned in the install docs. [@dev-PankajK](https://github.com/dev-PankajK) : did you find a solution ?

Hi @LoicUTC ,

You can try installing with Anaconda

You can follow below video tutorial:
https://www.youtube.com/watch?v=YoQZRKjgBkU

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

* Re: [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
@ 2025-01-30 16:39 ` "LoicUTC (@LoicUTC)" <noreply+LoicUTC@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: LoicUTC (@LoicUTC) @ 2025-01-30 16:39 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Thanks for the tutorial!

I figured out why it wasn’t working:
After installing the VS Code Compiler, you need to run the commands from the pgvector documentation in the Visual Studio command prompt (x64 Native Tools Command Prompt for VS 2022), not in the regular terminal.
Also, make sure to open it in administrator mode.

May we should update the doc with this tip to help other @ankane wdyt ?

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

* Re: [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
@ 2025-05-09 07:07 ` "EniacTamizha (@EniacTamizha)" <noreply+EniacTamizha@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: EniacTamizha (@EniacTamizha) @ 2025-05-09 07:07 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

hi @LoicUTC, I tried that documentation command to install makewin file in vs2022 cmd , but can't be able to install again getting the same error
 

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

* Re: [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win
@ 2026-04-24 02:00 ` "vdfngt (@vdfngt)" <noreply+vdfngt@github.com>
  6 siblings, 0 replies; 8+ messages in thread

From: vdfngt (@vdfngt) @ 2026-04-24 02:00 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

C:\Program Files (x86)\Windows Kits\10\Lib
C:\Program Files (x86)\Windows Kits\10\Include
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\Lib
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\Include
if xxx.h not found, you can find it in those dir. 
then you need add System Variable.

<img width="1767" height="923" alt="Image" src="https://github.com/user-attachments/assets/e4d49df8-963d-4f16-8efe-09661900c124"; />


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


end of thread, other threads:[~2026-04-24 02:00 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-01-25 09:32 [pgvector/pgvector] issue #435: crtdefs.h not found issue while running command nmake /F Makefile.win "dev-PankajK (@dev-PankajK)" <noreply+dev-PankajK@github.com>
2024-01-25 09:41 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-01-25 09:41 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-01-30 11:16 ` "LoicUTC (@LoicUTC)" <noreply+LoicUTC@github.com>
2025-01-30 11:34 ` "dev-PankajK (@dev-PankajK)" <noreply+dev-PankajK@github.com>
2025-01-30 16:39 ` "LoicUTC (@LoicUTC)" <noreply+LoicUTC@github.com>
2025-05-09 07:07 ` "EniacTamizha (@EniacTamizha)" <noreply+EniacTamizha@github.com>
2026-04-24 02:00 ` "vdfngt (@vdfngt)" <noreply+vdfngt@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