How to install LibreOffice in RHEL with dependencies

I have wget the tar.gz bundle of RPMs from the LO site and installed it. Yet when I check version
I get an error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory

When I run sudo dnf install *.rpm all the packages are cycled through, it claimed ‘dependencies resolved’, but still throws the same error when ran.

Clearly all the dependencies aren’t coming down with it.

If I install from the repository, it pulls down and installs everything and LibreOffice works fine. Except that’s an ancient 6.4 version.

Does anyone here have any tips on getting the newer RPMs to install with all of the dependencies in RHEL8?

I’m on a rolling release linux distro now and it’s been a while since I needed to install manually, but in any linux system I would consider these steps:

  • Libreoffice has this doc: Installing LibreOffice on Linux that might help

  • Double check that the downloaded file is okay using md5sum or sha256sum; You may need to look at the LO online info link to get the checksum.

  • Read the package README file for specific instructions

  • Is libxslt installed in the location of the newly installed libreoffice
    If you are running the mlocate database, after an updatedb, just do a locate libxslt. Or use
    whatever system file search you have to see where libxslt is installed.

  • Where does LO install their version… I might try a reboot, before invoking it. You can muck with shared libraries, but if there isn’t a reason to not reboot sometimes that is the quickest ymmv :slight_smile: Make sure you are invoking the new version. Search for bin/libreoffice

  • Something to consider, is it an option to use flatpak, snap or appimage. If you have an older distro, they might be an option to get you going.

maybe an upgrade …

anyhow, How to Install LibreOffice on a Red Hat Enterprise Linux System? - Red Hat Customer Portal

Maybe try

sudo dnf install libxslt

When the next version was installed it all worked again. Don’t know why it didn’t, but problem solved.

Thanks for your comments