Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Can not build on Mac OS PostgresApp #194

Open
stuta opened this issue Jan 17, 2025 · 2 comments
Open

[Bug]: Can not build on Mac OS PostgresApp #194

stuta opened this issue Jan 17, 2025 · 2 comments
Labels
bug Something isn't working community pgvectorscale

Comments

@stuta
Copy link

stuta commented Jan 17, 2025

What happened?

clang diagnosed error: /Applications/Postgres.app/Contents/Versions/17/include/postgresql/server/c.h:59:10: fatal error: 'stdio.h' file not found

pgvectorscale extension affected

0.5.1

PostgreSQL version used

17.0

What operating system did you use?

OSX 15.2

What installation method did you use?

Source

What platform did you run on?

Not applicable

Relevant log output and stack trace

clang diagnosed error: /Applications/Postgres.app/Contents/Versions/17/include/postgresql/server/c.h:59:10: fatal error: 'stdio.h' file not found

How can we reproduce the bug?

cargo pgrx install --release

Are you going to work on the bugfix?

None

@stuta stuta added bug Something isn't working community pgvectorscale labels Jan 17, 2025
@cevian
Copy link
Collaborator

cevian commented Jan 17, 2025

paradedb/paradedb#1473 seems similar

@stuta
Copy link
Author

stuta commented Jan 17, 2025

This worked:

export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

cargo pgrx install --release

  • this failed because it could not write to Application folder
  • sudo cargo pgrx install --release failed also

cargo pgrx install --sudo --release

  • this wrote files to pgvectorscale-0.5.1/target/release/vectorscale-pg17/Applications/Postgres.app/Contents/Versions/17/ and I was able to copy files to application.

After Postgres.app restart CREATE EXTENSION IF NOT EXISTS vectorscale CASCADE; worked.

Maybe readme needs some tweaking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community pgvectorscale
Projects
None yet
Development

No branches or pull requests

2 participants