Open MtnBiker opened 10 months ago
Did you find a solution to this?
@adam-micromelon I encountered this a couple of days ago. I was able to get it working by replacing any instances of .so
with .dylib
in tools/post-install/src/main.rs
and re-running the release command.
diff --git a/tools/post-install/src/main.rs b/tools/post-install/src/main.rs
index 6669ff3..2909c0e 100644
--- a/tools/post-install/src/main.rs
+++ b/tools/post-install/src/main.rs
@@ -47,7 +47,7 @@ fn try_main() -> xshell::Result<()> {
// is left anywhere in the install script, it will fail to install.
remove_module_path_from_control_file(&extension_info);
- // rename timescaledb_toolkit.so to timescaledb_toolkit-<current version>.so
+ // rename timescaledb_toolkit.dylib to timescaledb_toolkit-<current version>.dylib
add_version_to_binary(&extension_info);
// replace `MODULE_PATH` with `$libdir/timescaledb_toolkit-<current version>`
@@ -189,8 +189,8 @@ fn add_version_to_binary(
..
}: &ExtensionInfo,
) {
- let bin_file = path!(bin_dir / "timescaledb_toolkit.so");
- let versioned_file = path!(bin_dir / format!("timescaledb_toolkit-{}.so", current_version));
+ let bin_file = path!(bin_dir / "timescaledb_toolkit.dylib");
+ let versioned_file = path!(bin_dir / format!("timescaledb_toolkit-{}.dylib", current_version));
rename_file(bin_file, versioned_file);
}
@spohlenz Thank you! That fixed it for me
Relevant system information:
SELECT version();
): [e.g. 12.0, 13.2, etc]Describe the bug Followed source install .
To Reproduce Did the following:
git clone https://github.com/timescale/timescaledb-toolkit.git
cd timescaledb-toolkit
OK and folder is there. Addedexport PGRX_HOME="${HOME}/.cargo/“
to .zshrc after next step failedcargo pgrx install --release
# reran successfullyThen the following
The other files in
/Applications/Postgres.app/Contents/Versions/16/lib/postgresql/
are.dylib
and no.so
files.This is the first pg extention I've installed with Rust. I am a little surprised that the install is into the Postgres.app rather than
/Users/gscar/Library/Application Support/Postgres/var-16/
Thanks for any suggestions on how to proceed.