Skip to content

Conversation

@jaapbrasser
Copy link

Added libduckdb.dylib for MacOS support

The downside of the fix is that adding the library for each individual OS will result in longer download times.

An alternative solutions could be:

  • To determine the OS on module load, or module first load, and verify that the download the libraries then
  • Add error handling, when dll is not found with error message: Unable to load shared library 'duckdb' or one of its dependencies., download the file(s) and rerun the previous command.

Additionally, because this is an unsigned file, I first had to manually click to open this file before it was allowed to load because of the [Apple can't check app for malicious software](https://support.apple.com/en-gb/guide/mac-help/mchleab3a043/mac) message. I have not investigated if there's a programmatic solution for this as of yet.

@jaapbrasser
Copy link
Author

Issue in #3

@merill
Copy link

merill commented Jul 19, 2024

Thanks @jaapbrasser tested and works on macOS now. I didn't get the macOS prompt to manually click, maybe because I installed duckdb previously. Will need to test this on a fresh macVM to confirm.

I believe for Linux support the .so file needs to be included.

@Agazoth
Copy link

Agazoth commented Jul 19, 2024

@merill you are right. Adding the .so file to the lib folder makes the module run on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants