.
.
.
.
.
之前 Libreoffice 是好的,今天打开 Excel 文档的时候启动画面一闪而过,然后就没有然后了。
于是我尝试使用命令来启动,发现报错:
>$ libreoffice /usr/lib64/libreoffice/program/soffice.bin: symbol lookup error: /usr/lib64/libreoffice/program/libvcllo.so: undefined symbol: hb_graphite2_face_get_gr_face
重装了 libreoffice 套件也没用。
解决办法是安装 harfbuzz 库,并使用`./configure --with-graphite2`编译参数来修复。
首先去 Github 下载 harfbuzz,我下载了最新的版本(当前是8.4.0)https://github.com/harfbuzz/harfbuzz/tree/8.4.0
>$ ./autogen.sh >$ ./configure --with-graphite2 >$ make -j24 >$ sudo make install
最后别忘了刷新动态链接库缓存:
>$ sudo ldconfig
现在再启动 libreoffice 就可以正常启动了。
参考文献:
libreoffice crash, undefined symbol: hb_graphite2_face_get_gr_face
标签:39,gr,symbol,harfbuzz,graphite2,libreoffice,face From: https://www.cnblogs.com/0xcafebabe/p/18133827