node-libcurl: `zstd` dependency is missing
Error:
Error: dlopen(node_modules/node-libcurl/lib/binding/node_libcurl.node, 1): Library not loaded: /usr/local/opt/zstd/lib/libzstd.1.dylib
Referenced from: node_modules/node-libcurl/lib/binding/node_libcurl.node
Reason: image not found
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1057:18)
at Module.load (internal/modules/cjs/loader.js:863:32)
Hot Fix
Install zstd package
This issue took at least 8 hour from our team ๐
Added ๐ฅ hotfix instruction to library where node-libcurl is dependency โ https://github.com/VeliovGroup/request-extra#3-missing-libraries
@JCMais node-libcurl expect to have zstd library installed? Or itโs a bug and dependency is missing?
Tested on macOS@10.12.6 and macOS@10.15, node@12.18.4 and node@14.15.4, npm@6.14.8 and npm@7.5.2.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 20 (9 by maintainers)
Commits related to this issue
- feat: build zstd statically and use it when building libcurl - see #274 — committed to JCMais/node-libcurl by JCMais 3 years ago
Closing this issue as
v2.3.1has been released, full changelog available here.It may take some time until all the prebuilt binaries are available.
@DMarby the
glibcbuilds are on TravisCI, I am awaiting a response from their support about my OSS allowance. Currently, it says I used all my credit (I did not even know this was a thing for OSS projects). This seems to be related to their new pricing model: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billingIf I donโt get this solved by the end of today/tomorrow, I will probably just use another CI provider to run the
glibcbuilds, probably GitHub Actions as it seems to be the fastest one at the moment.Hi @dr-dimitru, sorry if this took some time to debug, I have to take a look at the way the addon is being built in macOS, as it should not really require external dependencies, as it should be built statically with all the dependencies.
Unfortunately, Iโm not able to that at the moment as I do not have a mac available. I should get around by the end of the month. Until then I will keep this issue opened.
@JCMais Awesome, thanks a lot, looking forward to it!
Please let me know if I can be of any assistance, or if you need any further help with MacOS testing or such.
Hi. I just struggle this morning with this issue. I have to install the lib myself. It take a long while. Use this command to do it
brew install --build-from-source zstdDo it, and you can brew a coffee. It took more than 1 hour here. =)
PS: Sorry. Now i saw your link with a much more detailed solution ๐