You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't want pgrx to install and manage any versions of postgres, because I'm not building any extensions myself, so I init with this command, which seems to work
cargo pgrx init --pg17 /Applications/Postgres.app/Contents/Versions/17/bin/pg_config
warning: `/Users/chandler/Documents/pg_jsonschema/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
Validating /Applications/Postgres.app/Contents/Versions/17/bin/pg_config
pgrx install still fails. Anyone have any suggestions? Might pgrx-bindgen-0.12.6/src/build.rs be doing something weird and not looking in the right place for the headers? stdio.h is the first non-pg-related header it's including:
less /Applications/Postgres.app/Contents/Versions/17/include/postgresql/server/c.h
#ifndefC_H#defineC_H#include"postgres_ext.h"/* Must undef pg_config_ext.h symbols before including pg_config.h */#undef PG_INT64_TYPE
#include"pg_config.h"#include"pg_config_manual.h"/* must be after pg_config.h */#include"pg_config_os.h"/* must be before any system header files *//* System header files that should be available everywhere in Postgres */#include<stdio.h>
The text was updated successfully, but these errors were encountered:
I'm trying to install pgrx locally so I can use supabase/pg_jsonschema.
I'm using Postgres.app v17 Universal binary on my M3 Mac.
pg_jsonschema seems to only work with pgrx 0.12.6, so I install it with the following command
I don't want pgrx to install and manage any versions of postgres, because I'm not building any extensions myself, so I init with this command, which seems to work
Yet, when I pgrx install, I get an error:
I've tried everything I can think of to figure out why Bindgen can't find
stdio.h
I verified stdio.h is there:
output
I can compile a simple program that pulls that c.h file. Following outputs succesfully:
I've tried setting BINDGEN_EXTRA_CLANG_ARGS:
pgrx install still fails. Anyone have any suggestions? Might
pgrx-bindgen-0.12.6/src/build.rs
be doing something weird and not looking in the right place for the headers? stdio.h is the first non-pg-related header it's including:The text was updated successfully, but these errors were encountered: