Install Libreoffice 4.1.1 on 64-bit CentOS 6.3

Source: Internet
Author: User

Due to server problems, the original Ubuntu 32-bit system was replaced with CentOS 6.3 64-bit, and some problems were encountered when installing libreoffice.

First, the installed libreoffice version is LibreOffice_4.1.2.3_Linux_x86_rpm (the installation steps are omitted here because there are problems after installation ), after installation, the default directory of the system is/usr/lib64/libreoffice (ubuntu 32-bit is in/usr/lib/libreoffice ). the project calls the libreoffice conversion document (doc, docx, pdf, txt, excel...) by using commands ....) produce pdf documents and convert them into swf files so that they can be viewed on the webpage (doc, docx, pdf, txt, excel .... ---> pdf --> swf)

The following exception is thrown when libreoffice is called in the background:

Exception in thread "main" org. artofsolving. jodconverter. office. OfficeException: failed to start and connect
At org. artofsolving. jodconverter. office. ManagedOfficeProcess. stopAndWait (ManagedOfficeProcess. java: 77)
At org. artofsolving. jodconverter. office. PooledOfficeManager. stop (PooledOfficeManager. java: 108)
At org. artofsolving. jodconverter. office. ProcessPoolOfficeManager. stop (ProcessPoolOfficeManager. java: 91)
At com. lexmark. pws. aps. pe. handler. impl. OfficeConnectorUtil. closeConnection (OfficeConnectorUtil. java: 86)
At com. lexmark. pws. aps. pe. ThumbnailEngine. main (ThumbnailEngine. java: 65)


Caused by: java. util. concurrent. ExecutionException: org. artofsolving. jodconverter. office. OfficeException: cocould not establish connection
At java. util. concurrent. FutureTask $ Sync. innerGet (FutureTask. java: 252)
At java. util. concurrent. FutureTask. get (FutureTask. java: 111)
At org. artofsolving. jodconverter. office. ManagedOfficeProcess. startAndWait (ManagedOfficeProcess. java: 62)
... 79 more
Caused by: org. artofsolving. jodconverter. office. OfficeException: cocould not establish connection
At org. artofsolving. jodconverter. office. ManagedOfficeProcess. doStartProcessAndConnect (ManagedOfficeProcess. java: 142)

However, I found a lot of information on the Internet and re-installed, uninstalled, and installed the related package... but the error still persists. There is no clear solution. There are also some materials that are about permission issues. It would be nice to change it, but it will not work after the test. So I thought about changing the version, and then the miracle came into being.

Step 1: Download LibreOffice 4.1.1
For RHEL/CentOS/Fedora 32-Bit
# Cd/tmp
# Wget http://download.documentfoundation.org/libreoffice/stable/4.1.1/rpm/x86/LibreOffice_4.1.1_Linux_x86_rpm.tar.gz
For RHEL/CentOS/Fedora 64-Bit
# Cd/tmp
# Wget http://download.documentfoundation.org/libreoffice/stable/4.1.1/rpm/x86_64/LibreOffice_4.1.1_Linux_x86-64_rpm.tar.gz

Step 2: delete the installed libreoffice or openoffice
# Yum remove openoffice.org * libreoffice.org *

Step 3: extract the LibreOffice 4.1.1 installation package
# For 32-Bit OS ##
# Tar-xvf libreoffice_4.1.20.linux_x86_rpm.tar.gz

# For 64-Bit OS ##
# Tar-xvf LibreOffice_4.1.1_Linux_x86-64_rpm.tar.gz


Step 4: Install LibreOffice 4.1.1 Package
# For 32 Bit OS ##
# Cd/tmp/libreoffice_4.1.20.linux_x86_rpm/RPMS/
# Yum localinstall *. rpm
# Yum localinstall desktop-integration/libreoffice4.0-freedesktop-menus-4.1.1 *. noarch. rpm

# For 64-Bit OS ##
# Cd/tmp/LibreOffice_4.1.1_Linux_x86-64_rpm/RPMS/
# Yum localinstall *. rpm
# Yum localinstall desktop-integration/libreoffice4.0-freedesktop-menus-4.1.1 *. noarch. rpm
PS: libreoffice4.0-freedesktop-menus-4.1.1 *. noarch. rpm path: some are in the RPMS/desktop-integration directory, and some are in RPMS. however, you can directly install it in that directory.

Step 5: Start LibreOffice 4.1.1 in terminal
# Libreoffice4.1

To sum up, the solution to this problem is to change the version. What is the cause of the problem? The problem is not found. If you find a friend, you can share the solution.

LibreOffice details: click here
LibreOffice: click here

Recommended reading:

Fedora 17 uses yum to install LibreOffice and Chinese language packs

Install LibreOffice in 64-bit SUSE

Install LibreOffice3.6.0.4 in Linux (Debian)

Linux 12.04 cannot be started.

[Data graph] operation data of LibreOffice Software

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.