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
Hi,
When postgresql compiled from source and installed into default dirs pg_config not accessible from PATH. My suggestion below. One can easily change pg_config location in Makefile and there won't be no warnings.
I suggest to modify Makefile:
Instead of
PGXS := $(shell pg_config --pgxs)
do
PG_CONFIG = pg_config
PGXS := (PG_CONFIG) --pgxs)
Add OBJS = zson.o. I don't understand why it's removed. Without it i can compile extension but get error when try to install it
incompatible library "/usr/local/pgsql/lib/zson.so": missing magic block
The text was updated successfully, but these errors were encountered:
OK, I can confirm (2). Thanks a lot for reporting this. Fixed in 3d89ce8 CC: @arssher
I can't tell that I fully agree with (1) though. If pg_config is not in PATH it means that psql and other tools are not too. This is very atypical installation to say the least.
2) Sorry, this is my fault: recently I have cleaned the Makefile, but forgot to remove MODULE_big var from it. See the following pull request where it is explained in the detail: #12
1) I support the idea: the situation in which you use for development several custom-built postgres'es is not rare. However, your solution is not good because it requires manual changes in the Makefile. In my pull request I improved this.
Hi,
When postgresql compiled from source and installed into default dirs pg_config not accessible from PATH. My suggestion below. One can easily change pg_config location in Makefile and there won't be no warnings.
I suggest to modify Makefile:
PGXS := $(shell pg_config --pgxs)
do
PG_CONFIG = pg_config
PGXS :=
incompatible library "/usr/local/pgsql/lib/zson.so": missing magic block
The text was updated successfully, but these errors were encountered: