codexbar fails on Ubuntu 26.04: libxml2.so.2 not found
Same symptom as the now-closed #935, filing fresh with root-cause analysis since that one was closed without a comment.
Symptom
On Ubuntu 26.04 (Resolute Raccoon), codexbar fails immediately:
$ codexbar
codexbar: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
Reproduced with both the Homebrew formula (brew install steipete/tap/codexbar) and the raw tarball from the v0.27.0 release (CodexBarCLI-v0.27.0-linux-x86_64.tar.gz).
Root cause
Ubuntu 26.04 ships libxml2 2.15, which bumped the library SONAME from libxml2.so.2 → libxml2.so.16. The Debian/Ubuntu package was correspondingly renamed libxml2 → libxml2-16:
$ dpkg -L libxml2-16 | grep '\.so'
/usr/lib/x86_64-linux-gnu/libxml2.so.16.1.2
/usr/lib/x86_64-linux-gnu/libxml2.so.16
There is no libxml2.so.2 available in resolute's repositories — not under libxml2, libxml2t64, or any compat package. The CodexBarCLI Linux binary is dynamically linked against libxml2.so.2:
$ ldd CodexBarCLI
...
libxml2.so.2 => not found
...
So the binary is unrunnable on any distro that has moved to libxml2 2.15+ (Ubuntu 26.04, future Debian, Fedora rawhide, Arch as of recently).
Suggested fixes
- Statically link libxml2 into the Linux release artifact — simplest, decouples the binary from system libxml2 entirely. Given CodexBarCLI likely uses libxml2 to read XML provider state (JetBrains config, etc.), removing the dependency isn't an option, but bundling it is.
- Publish two Linux artifacts — one linked against
libxml2.so.2(for current LTS), one againstlibxml2.so.16(for resolute and forward). Homebrew formula picks the right one based on a runtime check, or the CLI ships a thin loader.
Happy to test a fix on resolute.
Environment
- OS: Ubuntu 26.04 (Resolute Raccoon) x86_64
- libxml2 in repo: 2.15.2+dfsg-0.1 (package:
libxml2-16) - CodexBarCLI version: 0.27.0
@/var/folders/qp/t4t5pw1n1279_1qckf4gqhyc0000gn/T/tmp.7xAY9VXXdc