Libreoffice error: libicui18n.so.63: cannot open shared object file
Got this error after installing libreoffice 7.2.3 in Ubuntu 20.04 using apt:
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libicui18n.so.63: cannot open shared object file: No such file or directory.
Here's the output of apt-cache policy libreoffice
:
libreoffice:
Installed: 1:7.2.3~rc2-0ubuntu0.20.04.1~lo1
Candidate: 1:7.2.3~rc2-0ubuntu0.20.04.1~lo1
Version table:
*** 1:7.2.3~rc2-0ubuntu0.20.04.1~lo1 500
500 http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal/main amd64 Packages
100 /var/lib/dpkg/status
1:7.1.7-0ubuntu0.21.04.1~bpo20.04.1 100
100 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages
1:6.4.7-0ubuntu0.20.04.2 500
500 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
500 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages
1:6.4.2-0ubuntu3 500
500 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
The solution (inspired from here) is to insert the following two lines under the comment lines in "/usr/lib/libreoffice/program/soffice" and in "/usr/lib/libreoffice/program/unopkg" to get both libreoffice and Mendeley working.
LD_LIBRARY_PATH="/usr/lib/libreoffice/program:/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH