libreoffice安装

Posted 一葉知秋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了libreoffice安装相关的知识,希望对你有一定的参考价值。

  centos7下libreoffice的安装

#下载安装包
wget
http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/5.1.1/rpm/x86_64/LibreOffice_5.1.1_Linux_x86-64_rpm.tar.gz tar -xvf LibreOffice_5.1.1_Linux_x86-64_rpm.tar.gz [[email protected] ~]# cd LibreOffice_5.1.1.3_Linux_x86-64_rpm/ [[email protected] LibreOffice_5.1.1.3_Linux_x86-64_rpm]# ll total 16 -rwxr-xr-x 1 root root 10490 Mar 2 21:24 install drwxr-xr-x 2 root root 25 Mar 2 21:24 readmes drwxrwxr-x 2 root root 4096 Mar 2 21:24 RPMS [[email protected] LibreOffice_5.1.1.3_Linux_x86-64_rpm]# cd RPMS/
#安装 [[email protected] RPMS]# yum install *.rpm

  安装语言包

#下载语言包
wget
http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/5.1.1/rpm/x86_64/LibreOffice_5.1.1_Linux_x86-64_rpm_langpack_zh-CN.tar.gz [[email protected] RPMS]# tar -xvf LibreOffice_5.1.1_Linux_x86-64_rpm_langpack_zh-CN.tar.gz LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/ LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/ LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-writer-5.1.1.3-3.x86_64.rpm LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-math-5.1.1.3-3.x86_64.rpm LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-base-5.1.1.3-3.x86_64.rpm LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libreoffice5.1-zh-CN-5.1.1.3-3.x86_64.rpm LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-5.1.1.3-3.x86_64.rpm LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-calc-5.1.1.3-3.x86_64.rpm LibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-res-5.1.1.3-3.x86_64.rpm #安装语言包 [[email protected] RPMS]# yum install *.rpm

  安装依赖

[[email protected] logs]# /usr/bin/libreoffice5.1 --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard
/opt/libreoffice5.1/program/soffice.bin: error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory
#缺少libcairo.so.2依赖库
yum install ibus

  启动服务

/usr/bin/libreoffice5.1 --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard

以上是关于libreoffice安装的主要内容,如果未能解决你的问题,请参考以下文章

Python3 - Linux 下安装 LibreOffice 以及使用

Python3 - Linux 下安装 LibreOffice 以及使用

Libreoffice怎么安装

Armbian安装 libreoffice

怎么把libreoffice改成正常

centos7下安装LibreOffice