How to fix Rust tools that bind libgit2.so

September 08, 2022 1 minute

      Recently, after a system update, I became not able to run some of the system tools written on Rust, like exa and bat

      $ bat --version                                                                ~
      bat: error while loading shared libraries: libgit2.so.1.4: cannot open shared object file: No such file or directory
      

      Later I’ve got

      .local/share/cargo/bin/cargo-install-update: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
      

      The fix was easy: rebuild a binary

      $ cargo install exa bat --force
      

      That will rebuild a binary with new linking with current libraies


      Have a comment on one of my posts? Start a discussion in my public inbox by sending an email to ~histrio/[email protected] [mailing list etiquette]