标签:
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 [root@localhost ~]# cd LibreOffice_5.1.1.3_Linux_x86-64_rpm/ [root@localhost 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 [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.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 #安装语言包 [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://www.cnblogs.com/rwxwsblog/p/5350802.html