LibreOffice 无法编译

LibreOffice 无法编译

我正在尝试编译 LibreOffice,使用说明这里。但是当我运行的时候make,出现了这个错误:

/usr/bin/ld: /usr/local/lib/libpython3.7m.a(abstract.o): relocation R_X86_64_PC32 against symbol `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/libreoffice/core/pyuno/Library_pyuno.mk:10: /opt/libreoffice/core/instdir/program/libpyuno.so] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:282: build] Error 2

答案1

我卸载了 python 3.7 并安装了 python 3.8。这使得它编译时没有错误。

相关内容