Closed 7flash closed 9 months ago
Seems like we need to statically link to zlib for that. SQLite3 build doesn't seem to do it by default..
I encountered this too running the readme example on osx.
Built it works if I pull down the source and do:
git submodule update --init --recursive
deno task build
DENO_SQLITE_LOCAL=1 deno task test
Also I don't get the error if I use sqlite3@0.9.1
... so seems specific to the current version dylib
release artifact?
Are you on ARM Mac? ARM binaries are built locally and uploaded manually when making a release. Maybe there was some configuration issue earlier. We can try cutting a new release
Yes macbook air m2
So what should I do?
@7flash you should try building SQLite3 locally and run the tests in this repo to see if it works without installing zlib dependency. There are instructions to do so above my comment.
Yes on a M1.
Downloaded from github release:
otool -L ~/Downloads/libsqlite3_aarch64.dylib
/Users/steve/Downloads/libsqlite3_aarch64.dylib:
/usr/local/lib/libsqlite3-3.44.0.0.dylib (compatibility version 9.0.0, current version 9.6.0)
/opt/homebrew/opt/zlib/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.13)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.0.0)
If I build locally:
otool -L build/libsqlite3_aarch64.dylib
build/libsqlite3_aarch64.dylib:
/usr/local/lib/libsqlite3-3.44.0.0.dylib (compatibility version 9.0.0, current version 9.6.0)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.12)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1336.61.1)
Local build looks correct even if I do brew install zlib
would probs just work if you uninstall brew’s zlib before building since darwin comes with its own zlib
That would kinda explain why the build on CI (without installing brew zlib) doesn't have this issue compared to the build on my mac, where it is installed
I have the same issue, and I would prefer that the bundled builds do not require homebrew zlib.
This issue should be resolved in release 0.11.0
Version: Deno 1.39.1
Jan05-2100.ts
Compile it
Then run
This error solved by installing zlib
Then works
It's expected to work regardless user machine has zlib installed
https://github.com/denoland/deno/issues/21809#issuecomment-1879057507