上官網下載https://www.libreoffice.org
由於天朝東廠功夫網的緣故,下載速度極慢,找到國內鏡像地址:
http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/4.4.4/deb/x86_64/LibreOffice_4.4.4_Linux_x86-64_deb.tar.gz
解壓後,進入DEPS目錄。
dpkg -i *.deb
安裝完成。運行
# libreoffice4.4 --version
/opt/libreoffice4.4/program/soffice.bin: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory
解決辦法:# apt-get install libglu1
映射libreoffice命令:
# cd /usr/bin
# ln -s /opt/libreoffice4.4/program/soffice libreoffice
Mac OSX 不支持軟鏈接,需要使用絕對路徑調用。
/Applications/LibreOffice.app/Contents/MacOS/soffice