OSError: libheif.so.1: cannot open shared object file: No such file or directory

Hello, I have tried everything i can to get my django project deployed, the build completes, but deployments fails with the error in the title. PROJECT ID: c30a6509-6a6f-4653-a886-7e223aa4a144
4 Replies
Percy
Percy12mo ago
Project ID: c30a6509-6a6f-4653-a886-7e223aa4a144
Brody
Brody12mo ago
try adding this to a nixpacks.toml file in your project
[phases.setup]
aptPkgs = ["...", "libstdc++6"]
nixPkgs = ["...", "libheif"]
[phases.setup]
aptPkgs = ["...", "libstdc++6"]
nixPkgs = ["...", "libheif"]
captjay98
captjay9812mo ago
So i managed to overcome that error by copying the lib files from /usr/lib/x86_64-linux-gnu/ to the/usr/lib Now i am getting this: OSError: /nix/store/wprxx5zkkk13hpj6k1v6qadjylh3vq9m-gcc-11.3.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/libgdal.so.30)
Brody
Brody12mo ago
^