pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
7+ messages / 5 participants
[nested] [flat]

* [pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
@ 2024-09-11 11:39  "pradeepdev-1995 (@pradeepdev-1995)" <noreply+pradeepdev-1995@github.com>
  0 siblings, 0 replies; 7+ messages in thread

From: pradeepdev-1995 (@pradeepdev-1995) @ 2024-09-11 11:39 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I am facing an issue with Windows OS.
Following these instructions to enable vector extension on windows os -https://github.com/pgvector/pgvector?tab=readme-ov-file#windows
as part of that
I'm trying to run the last command - ```F Makefile.win install```

But it shows

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

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

        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\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\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\bitutils.c /Fosrc\bitutils.obj' : return code '0x2'
Stop.
```

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

* Re: [pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
@ 2024-09-11 13:53  "jkatz (@jkatz)" <noreply+jkatz@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: jkatz (@jkatz) @ 2024-09-11 13:53 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Please see: https://github.com/pgvector/pgvector/issues/669#issuecomment-2343437414

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

* Re: [pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
@ 2024-09-11 19:04  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2024-09-11 19:04 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

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

* Re: [pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
@ 2024-09-11 19:04  "ankane (@ankane)" <noreply+ankane@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: ankane (@ankane) @ 2024-09-11 19:04 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @pradeepdev-1995, check out the [installation notes](https://github.com/pgvector/pgvector?tab=readme-ov-file#missing-header-1).

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

* Re: [pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
@ 2024-09-12 06:15  "pradeepdev-1995 (@pradeepdev-1995)" <noreply+pradeepdev-1995@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: pradeepdev-1995 (@pradeepdev-1995) @ 2024-09-12 06:15 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane I was checking this from the release notes
I found this.
```
If compilation fails with Cannot open include file: 'postgres.h': No such file or directory, make sure PGROOT is correct.
```
But how to check whether PGROOT is correct or not?

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

* Re: [pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
@ 2024-11-28 07:58  "edceds (@edceds)" <noreply+edceds@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: edceds (@edceds) @ 2024-11-28 07:58 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Btw for linux run `sudo apt install postgresql-server-dev-XX` to fix the problem - replace [XX] with your postgresql version `psql --version`

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

* Re: [pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory
@ 2024-12-02 08:37  "neeraj500 (@neeraj500)" <noreply+neeraj500@github.com>
  5 siblings, 0 replies; 7+ messages in thread

From: neeraj500 (@neeraj500) @ 2024-12-02 08:37 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

I got this error. It is not working for Postgres 17 so I used 16 and it worked fine.

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


end of thread, other threads:[~2024-12-02 08:37 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-09-11 11:39 [pgvector/pgvector] issue #670: src\bitutils.c(1): fatal error C1083: Cannot open include file: 'postgres.h': No such file or directory "pradeepdev-1995 (@pradeepdev-1995)" <noreply+pradeepdev-1995@github.com>
2024-09-11 13:53 ` "jkatz (@jkatz)" <noreply+jkatz@github.com>
2024-09-11 19:04 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-11 19:04 ` "ankane (@ankane)" <noreply+ankane@github.com>
2024-09-12 06:15 ` "pradeepdev-1995 (@pradeepdev-1995)" <noreply+pradeepdev-1995@github.com>
2024-11-28 07:58 ` "edceds (@edceds)" <noreply+edceds@github.com>
2024-12-02 08:37 ` "neeraj500 (@neeraj500)" <noreply+neeraj500@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