3

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...

Milliams
  • 31
  • 1
  • 2

3 Answers3

2
yum install openoffice.org-<package>

Examples:

yum install openoffice.org-base
yum install openoffice.org-calc
yum install openoffice.org-writer
Massimo
  • 70,200
  • 57
  • 200
  • 323
  • each time I attempt to install I keep getting missing dependency errors... – Milliams 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 – Milliams 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.. – Milliams 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: libhal-storage.so.1 is needed by package gnome-mount-0.5-3.el5.i386 – Milliams Jun 18 '10 at 15:02
  • That's ok, it's usual for YUM to show you missing dependencies; but then it should ask you to automatically install all of them, does it? – Massimo Jun 18 '10 at 15:56
  • wow..it does not.. – Milliams Jun 18 '10 at 16:29
  • Very strange. Does your Linux box have Internet access? – Massimo Jun 19 '10 at 03:35
  • looks like someone installed jvm manually and not as a packet. you can try yum install --skip-broken but no guarantees – Aleksandar Ivanisevic Jun 19 '10 at 06:30
  • I tried to install with yum install --skip broken openoffice.org.base..with it seems no luck any suggestions? – Milliams Jun 21 '10 at 19:22
  • You could... download the packages with wget, install them with rpm... then try again. Sometimes rpm succeeds where yum does not. Certainly when it comes to installing dependencies – Tom O'Connor Jul 24 '10 at 08:34
1
yum install openoffice.org-base
yum install openoffice.org-calc
yum install openoffice.org-writer

yum install openoffice.org-headless

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)
cherouvim
  • 794
  • 3
  • 21
  • 37
0
yum install openoffice.org-headless
Mark Henderson
  • 68,823
  • 31
  • 180
  • 259
ddjikic
  • 101