LibreOffice 25.2 AppImage cannot run because of no libxml2 dependency

The libxml2 library is already installed. There is no rest package in my system.

What should I do?

$ ./LibreOffice-fresh.standard-x86_64.AppImage 
libreoffice25.2: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

$ sudo pacman -Ss libxml2
...
core/libxml2 2.14.3-1 [installed]
    XML C parser and toolkit
core/libxml2-docs 2.14.3-1
    XML C parser and toolkit (documentation)
extra/gambas3-gb-libxml 3.20.3-2 (gambas3)
    libxml2 component
extra/haskell-libxml 0.1.1-23
    Binding to libxml2
extra/haskell-libxml-sax 0.7.6-22
    Bindings for the libXML2 SAX interface
extra/libxml++ 3.2.5-3 [installed]
    C++ bindings to libxml2
extra/libxml++-5.0 5.4.0-3
    C++ bindings to libxml2
extra/libxml++-5.0-docs 5.4.0-3
    C++ bindings to libxml2 (documentation)
extra/libxml++-docs 3.2.5-3
    C++ bindings to libxml2 (documentation)
extra/libxml++2.6 2.42.3-2
    C++ bindings to libxml2
extra/libxml++2.6-docs 2.42.3-2
    C++ bindings to libxml2 (documentation)
extra/libxml2-legacy 2.13.8-1
    XML C parser and toolkit (legacy version)
extra/perl-alien-libxml2 0.20-1
    Install the C libxml2 library on your system
extra/python-lxml 5.4.0-1 [installed]
    Python3 binding for the libxml2 and libxslt libraries
extra/python-lxml-docs 5.4.0-1
    Python binding for the libxml2 and libxslt libraries (docs)
extra/xmlsec 1.3.7-2 [installed]
    XML Security Library is a C library based on LibXML2
multilib/lib32-libxml2 2.14.3-1
    XML C parser and toolkit (32-bit)

There is no problem with appimage LibO 24.8.

There is nothing you can do to fix it, you can only workaround.
Use the old appimage. Or write the developer to fix the new one not to rely on system libraries assuming ubuntu and instead to include everything like it is supposed to be in the first place.
Or use flatpak. Or the repo version. Or aur. Your choice.

You can try installing libxml2-legacy.

EDIT:

Just realised it said appimage, so I doubt it’ll work.

3 Likes

On the contrary. That’s the solution. Thank you very much, specially for truly trying to help.

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 8; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: es-MX (en_US.UTF-8); UI: en-US
Calc: threaded
3 Likes

You’re welcome. :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.