Centos7 install libreoffice

After installing Centos7, the system installed libreoffice 3.x version. Now I want to install 6.x version.
In experiments on their computers personally successful installation, the following is a record of each operation

Current libreoffice unloading system
execute the following command:

* the Remove libreoffice- yum
1
In order to use mirroring, adding agents in the hosts file under the etc directory.
Note that there is no increase, it may not be the third step operation may be added.

.208.46.146 www.google.com
.208.46.146 dl.google.com
.208.46.146 dl-ssl.google.com
1
2
3
get rpm files
http://mirrors.ustc.edu.cn/tdf/libreoffice / stable
1
choice 6.0.3 (the latest version, it is the possible release 5.05, currently I'm using 6.0.3)
and select the rpm and then select x86_64

http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/6.0.3/rpm/x86_64/
1
download three files
LibreOffice_6.0.3_Linux_x86-64_rpm.tar.gz
LibreOffice_6.0.3_Linux_x86-64_rpm_sdk.tar. GZ
LibreOffice_6.0.3_Linux_x86-64_rpm_langpack_zh-CN.tar.gz
. 1
2
. 3
ceontos directly copy the code on the line

wget http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/6.0.3/rpm/x86_64/LibreOffice_6.0.3_Linux_x86-64_rpm.tar.gz
wget http://mirrors.ustc.edu.cn/ TDF / LibreOffice / stable / 6.0.3 / RPM / x86_64 / LibreOffice_6.0.3_Linux_x86-64_rpm_sdk.tar.gz
wget http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/6.0.3/rpm/x86_64 /LibreOffice_6.0.3_Linux_x86-64_rpm_langpack_zh-CN.tar.gz
. 1
2
. 3
-extracting file, run the following command
mkdir / usr / LibreOffice
the tar -zxvf LibreOffice_6.0.3_Linux_x86-64_rpm.tar.gz -C / usr / LibreOffice /
the tar -zxvf -C LibreOffice_6.0.3_Linux_x86-64_rpm_sdk.tar.gz / usr / LibreOffice /
the tar-CN.tar.gz -C -zxvf LibreOffice_6.0.3_Linux_x86-64_rpm_langpack_zh / usr / LibreOffice /
. 1
2
. 3
. 4
into the RPMS directory
after extracting the above two files, / usr / libreoffice / folders below have 3, which has a folder RPMS

LibreOffice_6.0.3_Linux_x86-64_rpm
LibreOffice_6.0.3_Linux_x86-64_rpm_sdk
LibreOffice_6.0.3_Linux_x86-64_rpm_langpack_zh-CN

LibreOffice_6.0.3_Linux_x86-64_rpm into the rpm, execute the command
cd /usr/libreoffice/LibreOffice_6.0.3_Linux_x86-64_rpm/RPMS
1
to rpm installation with yum, do not use the rpm command to install
yum localinstall * .rpm

[Note:
Because there are dependencies libgnomevfs-2.so.0 (64bit) () , which is the package libobasis5.0-gnome-integration-6.0.3-2.x86_64 need, so do not use the rpm command to install, rpm -ivh * .rpm command can not solve the above-dependent system. Using yum encountered dependencies above can be solved when the dependency from the network to download the appropriate package. ]

So far office successfully installed.

After the installation is complete, open office or will get an error, suggesting no libcairo,

[root@localhost uploads]# libreoffice6.0 --invisible --convert-to html test.doc
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
/opt/libreoffice6.0/program/soffice.bin: error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory
1
2
3
4
安装 yum -y install cairo
即可

If there are suggested:

libreoffice6.0 d9755f55-6722-4e74-a7c7-b74f4ac09ec0.docx
Failed to open display
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
/opt/libreoffice6.0/program/soffice.bin: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory
1
2
3
4
5
下载安装如下 libSM-1.2.2-2:即可

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libSM-1.2.2-2.el7.i686.rpm
yum localinstall libsm -Y-1.2.2-2.el7.i686. RPM
. 1
2
or install
yum -y install libSM
also OK

Some other software needs to be installed

yum install ibus install third-party tools rely
yum install libreoffice-headless is used to start the tool Libreoffice

But we install the default is English, so be finished.
This time using this

CN.tar.gz-LibreOffice_6.0.3_Linux_x86-64_rpm_langpack_zh
. 1
into a folder LibreOffice_6.0.3_Linux_x86-64_rpm_langpack_zh-CN, and

Run the following command
yum localinstall * .rpm

Speaking after opening the office found, oh

About LibreOffice introduction:

LibreOffice is compatible with Microsoft Office series and other open-source office software depth, and supports document formats fairly comprehensive

1、文本文档:*.odm, *.sgl, .odt,.ott, *.sxw, *.stw, *.fodt, *.xml, .docx,.docm, *.dotx, *.dotm, *.doc, *.dot, *.wps, *.pdb, *.hwp, *.html, *.htm, *.lwp, *.psw, *.rft, *.sdw, *.vor, *.txt, .wpd ,.oth.

2, spreadsheets:. * Ods, * .ots, * .sxc, * .stc, * .fods, * .xml, * .xlsx, * .xlsm, * .xltm, * .xltx, * .xlsb, * .xls, * .xlc, .xlm *, * .xlw, * .xlk, .sdc *, * .vor, .dif, .wk1, .wks *, * .123, * .pxl, .wb2 *, * .csv.

3, presentations:. * Odp, * .otp, * .sti, * .sxd, * .fodp, * .xml, * .pptx, * .pptm, * .ppsx, * .potm, * .potx, * .ppt, * .pps, * .pot, * .sdd, * .vor, * .sdp.

4, the drawing: ODG *, * .otg, .sxd *, * .std,. .Sgv, .sda, .vor *, * .sdd, .cdr *, * .svg, .vsd *, * .vst

5, page:. * Html, * .htm, * .stw

6, the master document:. * Sxg

7, the formula:. * Odf, * .sxm, * .smf, * .mml

8, database document:. * ODB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Overall, LibreOffice interface of Microsoft Office is not so gorgeous, but very simple and practical. Its six components corresponding to the Office no less, but also less demanding on system configuration, small footprint.

libreoffice6.0 complete format conversion
libreoffice6.0 --invisible --convert-to pdf: writer_pdf_Export --outdir "/ root /" "bb.xls"
to convert test.doc into html, saved in test directory
libreoffice6.0 - --convert to-HTML --outdir Invisible ./test Test.doc
. 1
2
. 3
. 4
https://www.cnblogs.com/dongguolei/p/7902552.html

yum install libreoffice-headless

Author: diyiday
Source: CSDN
Original: https://blog.csdn.net/diyiday/article/details/79852923
Copyright: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin blog.csdn.net/weixin_42185136/article/details/90232268