Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how to download and install OpenOffice 3.1 in headless mode on my CentOS server...I am working with a java app that needs OpenOffice as just a service for form generation....I am having a difficult time...any head on what steps to take would be great...

share|improve this question
Which CentOS version? – Massimo Jun 18 '10 at 14:40
I have CentOS Linux 5.4 on a VPS box – CMwilliams Jun 18 '10 at 14:56
yum install<package>


yum install
yum install
yum install
share|improve this answer
each time I attempt to install I keep getting missing dependency errors... – CMwilliams Jun 18 '10 at 14:06
Do I have to install JRE on the server..if so how to the java app I am attempting to set up uses Tomcat6 which is installed and configured...but having difficulty installing OpenOffice in headless mode...not sure what I am missing..thanks a ton – CMwilliams Jun 18 '10 at 14:08
YUM should take care of dependencies automatically... what errors exactly do you get? – Massimo Jun 18 '10 at 14:39
I get quite a few...I can email you them...they are too long for this comment area.. – CMwilliams Jun 18 '10 at 14:59
here are a few... java-gcj-compat is needed by package bsh-1.3.0-9jpp.1.i386 (base) Error: Missing Dependency: java-gcj-compat is needed by package xalan-j2-2.7.0-6jpp.1.i386 (base) Error: Missing Dependency: is needed by package gnome-mount-0.5-3.el5.i386 – CMwilliams Jun 18 '10 at 15:02
yum install
yum install
yum install

yum install

You also need the last command to be able to run in headless mode. Otherwise you'll be getting:

/usr/lib64/openoffice.org3/program/soffice.bin X11 error: Can't open display:
   Set DISPLAY environment variable, use -display option
   or check permissions of your X-Server
   (See "man X" resp. "man xhost" for details)
share|improve this answer
-headless is no longer necessary (it's now part of the base) – Kato Dec 29 '12 at 1:07
yum install
share|improve this answer
do someone know how to count words ? – ddjikic Mar 1 '13 at 6:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.