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
时间: 2024-10-10 01:30:50