libreoffice 出现 /lib/x86_64-linux-gnu/libcairo.so.2: undefined symbol: FT_Get_Var_Design_Coordi
出现这个问题是libreoffice依赖 jdk,当时jdk没有配好,配置好jdk环境即可 可选jdk oracle-jdk corretto-jdk dragonWell-jdk 后两者都属于openjdk
/etc/profile
export JAVA_HOME=/opt/jdk1.8
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH
#! /bin/bash
libreoffice --invisible --convert-to pdf $1