上官网下载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