本文共 2084 字,大约阅读时间需要 6 分钟。
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.gztar -xvf LibreOffice_5.1.1_Linux_x86-64_rpm.tar.gz[root@localhost ~]# cd LibreOffice_5.1.1.3_Linux_x86-64_rpm/[root@localhost LibreOffice_5.1.1.3_Linux_x86-64_rpm]# lltotal 16-rwxr-xr-x 1 root root 10490 Mar 2 21:24 installdrwxr-xr-x 2 root root 25 Mar 2 21:24 readmesdrwxrwxr-x 2 root root 4096 Mar 2 21:24 RPMS[root@localhost LibreOffice_5.1.1.3_Linux_x86-64_rpm]# cd RPMS/ #安装[root@localhost 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[root@localhost 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.rpmLibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-math-5.1.1.3-3.x86_64.rpmLibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-base-5.1.1.3-3.x86_64.rpmLibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libreoffice5.1-zh-CN-5.1.1.3-3.x86_64.rpmLibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-5.1.1.3-3.x86_64.rpmLibreOffice_5.1.1.3_Linux_x86-64_rpm_langpack_zh-CN/RPMS/libobasis5.1-zh-CN-calc-5.1.1.3-3.x86_64.rpmLibreOffice_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#安装语言包[root@localhost RPMS]# yum install *.rpm
安装依赖
[root@sso 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
转载地址:http://ynjio.baihongyu.com/