pantry icon indicating copy to clipboard operation
pantry copied to clipboard

no such file or directory error: protobuf.dev / protoc

Open ErenDursun opened this issue 5 months ago • 2 comments

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.

ErenDursun avatar Jul 31 '25 20:07 ErenDursun

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 ...

jhheider avatar Jul 31 '25 23:07 jhheider

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.

jhheider avatar Aug 01 '25 00:08 jhheider