Traveling through the yum repositories, I’ve found the libreoffice-headless (it means the openoffice without ServerX) then I’ve installed it using this simple command: root@centos:/$ yum install libreoffice-headless. It should install all requirements, dependencies and then libreoffice 3.4 headless. It means the functionality to make LibreOffice to work on command line. We need to install jodconverter, which is an utility that automates conversions between Open Office and Libre Office documents, then install lame, which is a MP3 encoder and finally install ffmpeg which is a toolset to record, convert and stream audio and video.
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upHave a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
commented Oct 11, 2010
I've followed the directions to install Docsplit from here (accounting for differences for CentOS of course): http://documentcloud.github.com/docsplit I think I've got all necessary packages installed, but when I run 'docsplit pdf <some.doc.file>' to convert a Word Doc to PDF, I get this error: For what it's worth, I had all of this working perfectly both in OSX and in an Ubuntu VM I set up. But CentOS is giving me a lot of grief with this stuff. Any ideas? |
commented Oct 11, 2010
Nothing in particular, I'm afraid -- I've never tried it on CentOS. First, make sure that the OpenOffice process is indeed running and bound to that port. Second, this might be of help: If neither of those help, I'd recommend asking for assistance on the JODConverter mailing list, here: |
commented Oct 11, 2010
That's the interesting thing. The way everything behaves in OSX and Ubuntu is that the act of running Docsplit actually fires up the OpenOffice process on the fly and it all 'just works'. But I did already try to start soffice in headless mode before running Docsplit on CentOS and then it just gives me an IllegalStateException saying that a process is already started on that port, as if it's NOT expecting it to already have been started. At this point I'm trying to convince my client to let me move it to a simpler Ubuntu VPS, 'cause dealing with CentOS has just been a huge headache overall. :/ But thanks a ton for the tips. I'm going to look over that JOD converter link. Thanks! |
This issue was closed.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Warning – Java 7 is officially deprecated by Oracle team. It is no more available for download on the public network. The Oracle team recommends upgrading to Java 8 or Java 9. You can follow below tutorials to install accordingly.
During installation of Java using rpm files, I faced issues many times. After that, I found a better way to install java from Sun site. Using below steps I have installed java successfully many times without facing any issues. We can also install multiple version of java easily if required. Oracle has also released Java 8. To install it read article
![Install Install](/uploads/1/2/5/8/125880789/315322910.png)
Use following step by step instructions to install or update Java. I recommend reading carefully instruction for downloading Java from Linux command line.
Downloading Latest Java Archive
Java latest archive is available on its official site. We recommend to download latest version of Java from Oracle official website. After completing download also extract archive with given commands.
For 64 Bit:-
For 32 Bit:-
Use archive file as per your system configuration. For this example we are using CentOS 7.0 (64 bit) system.
Install Java with Alternatives
After extracting Java archive file, we just need to set up to use newer version of Java using alternatives. Use the following commands to do it.
Now you may also required to set up javac and jar commands path using alternatives command.
Check Installed Java Version
Use following command to check which version of Java is currently being used by system.
Configuring Environment Variables
Most of Java based application’s uses environment variables to work. Use following commands to set up these variable properly. It’s also good to add following commands to any start-up script like ~/.bashrc or ~/.bash_profile.
- Setup JAVA_HOME Variable
- Setup JRE_HOME Variable
- Setup PATH Variable
I hope above steps will help you for installing Java on your Linux system. You can follow above steps to install multiple version of Java as same time but you can use only one version at a time.