no such file or directory error: protobuf.dev / protoc
Hi all,
when I run protoc via protobuf.dev in v21.12.0 everything works as intended, but starting with v22.5.0 up to the current v31.1.0 things seem broken:
pkgx [email protected]
Usage: /home/eren/.pkgx/protobuf.dev/v21.12.0/bin/protoc [OPTION] PROTO_FILES Parse PROTO_FILES and generate output based on the options given: -IPATH, --proto_path=PATH Specify the directory in which to search for ...
pkgx [email protected]
/home/eren/.pkgx/protobuf.dev/v31.1.0/bin/protoc: error while loading shared libraries: libabsl_die_if_null.so.2501.0.0: cannot open shared object file: No such file or directory
Is this supposed to still work out-of-the-box as before, or am I missing something?
I think this is somehow related to the abseil.io dependency, which was introduced with Protobuf v22.
yes, to a degree. you should include the appropriate abseil dependency (since different versions of protobuf have different requirements). that one appears to be pkgx +abseil.io^20250127 +protofbuf.dev^whatever protoc ...
it's actually a surprisingly thorny problem to solve. static linking would do it, but I haven't been able to work it out so far. so, if you have ideas, code is always welcome.