Open zakyum opened 2 months ago
Yes. On nixos there is no /usr/lib dynamic libraries to pick up, that's not specific to the deno package in nixpkgs.
Because that .node
file is dynamically linked it wont work unless you either patch it or provide it the dynamic path it wants via an FHS env, nix-alien, or something similar.
The easiest test would just to throw steam-run
in front of your command.
That wraps around any command you give it and runs it in a more typical linux filestructure (FHS) so the program can find libs.
Describe the bug
Deno 1.45.2 crashes saying that it can't find
libstdc++.so.6
when trying to use it with the npm:duckdb package.Think that this is primarily caused by using Deno with an npm library which uses a binary, the DuckDB binary to be precise. The DuckDB binary probably depends on
libstdc++.so.6
and Deno can't find it because of Nix's isolating properties?Works when installing Deno via their installer, i.e. without using Nix. Am not a Nix pro and don't know how to debug further, but would be willing to test more if provided instructions. Also I don't expect a fix, just wanted to mention this so that the problem is at least logged somewhere.
Steps To Reproduce
Steps to reproduce the behavior:
nix-repro.ts
file:const db = await Database.create(":memory:");
Expected behavior
Should not crash. Works when installing Deno via their installer, i.e. without using Nix.
Additional context
Works on macOS.
Notify maintainers
@06kellyjac
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.