I use Ubuntu MATE 18.04 LTS with installed R and RStudio to build bookdown books and documents.
Previously I used these applications in 16.04 LTS.
Building/knitting book or single RMarkdown document to odt/docx ended here by showing the document in LibreOffice Writer.
In 18.04 LTS the behavior is changed.
Knitting document or book to odt/docx does not show the document in LibreOffice.
If I launch RStudio from the terminal and hit Knit or Build Book it shows the following output:
/usr/lib/libreoffice/program/javaldx: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory
Warning: failed to read path from javaldx
/usr/lib/libreoffice/program/soffice.bin: error while loading shared libraries: libreglo.so: cannot open shared object file: No such file or directory
How can I fix this?
libreglo.so is really in place:
$ dpkg -S libreglo.so uno-libs3: /usr/lib/libreoffice/program/libreglo.so
Libreoffice Java binding is in place
$ dpkg -l libreoffice-java-common | tail -n1 ii libreoffice-java-common 1:6.0.7-0ubuntu0.18.04.10 all office productivity suite -- arch-independent Java support files $ update-java-alternatives -l java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64
Enabling/disabling Java in
loffice, Tools → Options, LibreOffice, Advanced, [ ] Use a Java runtime environment does not change anything.