-
Notifications
You must be signed in to change notification settings - Fork 698
Open
Description
Installing nodegit on archlinux failes while building with:
Error: /usr/lib/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by node_modules/nodegit/build/Release/nodegit.node)
I think this was introduced by PR #1195
The issue is, that nodegit wants libcurl abi-3, while archlinux default libcurl is abi-4.
How to fix
At least on arch-linux nodegit should link against libcurl-compat (which is abi-3 and provides libcurl.so.3 as well as ), not libcurl (which is abi-4 and is incompatible with libcurl-compat.soCURL_OPENSSL_3).
How to reproduce
- Grab and boot a manjaro live-cd (https://manjaro.github.io/), which should be easier/faster then bootstrapping arch
- Install nodejs with pacman/yaourt
- Try to install nodegit with npm
Sidenote
Effected third-party tools are for example GitKraken on arch (see comments) which comes with prebuild nodegit binaries but fails to load because of missing/wrong symbols in libcurl.so.4. This can be fixed by loading libcurl-compat before libcurl using the LD_PRELOAD trick.
urcadox, theopnv, dusterherz, mati865, Clement134 and 8 more
Metadata
Metadata
Assignees
Labels
No labels