Closed mikerockett closed 1 year ago
Any updates on this?
Apologies, I now see that I am wrong. My Postgres is indeed x86 (v12), but the extension is being built as arm64, and therefore they cannot be linked. I'm not very familiar with gcc, so not sure if I can target x86 on arm64 so they can be linked, but will try…
@jeevanchalke I am unable to get this working, especially with my limited clang/gcc knowledge. Would you be able to assist?
After an update of Postgres for Mac, it seems that make install works, but installcheck failed because of the following:
+ERROR: incompatible library "/Applications/Postgres.app/Contents/Versions/12/lib/postgresql/mysql_fdw.so": missing magic block
+HINT: Extension libraries are required to use the PG_MODULE_MAGIC macro.
I have no idea what this means, but I'm going to go ahead and guess that the compilation succeeded but did not use the macro (whatever it is for).
Looks like I'm going to have to attempt this in docker…
I can't seem to be able to get this extension to build on Apple M1. Output of make is:
Attempting to install directly with PGXN failed due to incompatible Postgres versions.
I could likely get around this by reverting to an x86 build of Postgres, but would prefer not to if there is a better way.
What's the best way to get this to work?