cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Labs 3.0b OpenOffice Location

jwrobel
Champ in-the-making
Champ in-the-making
While installing Alfresco Labs 3.0b using the executable Linux installer, on Fedora 8, everything goes swimmingly until it asks for the OpenOffice location…

At which point it states, "Setup needs to know where OpenOffice is installed on your computer."

I've tried giving the location of soffice.bin, and every directory on the path to soffice.bin (/usr/lib/openoffice.org/program) but to no avail.

does anyone have any suggestions?
4 REPLIES 4

jwrobel
Champ in-the-making
Champ in-the-making
Hey belmekki, Thanks for your reply!

Unfortunately, I'm already using the full-setup file for Linux located  at the wiki . On the OpenOffice Location prompt, the default location is $ALF_HOME/OpenOfficePortable/App/openoffice but there isn't anything there.

I just skipped this part by choosing the directory where Alfresco was installed ($ALF_HOME). After starting Alfresco I attempted to follow these instructions but sudoing to the alfresco user didn't make sense to me because the installer didn't create an alfresco user.

So I ran this instead:
$ "/usr/lib/openoffice.org/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:////$ALF_HOME" -nologo -headless -nofirststartwizard -nocrashrep -norestore &

This setup seems to be working for me. I was able to transform an .odt into a pdf.

However:

If I look in the alfresco.log file I can see that Alfresco tries to load "$ALF_HOME/program/soffice" but it throws this error instead:
 
10:13:23,544 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
   os:         Linux
   command:    "/$ALF_HOME/program/soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file:////$ALF_HOME" -nologo -headless -nofirststartwizard -nocrashrep -norestore
   succeeded:  false
   exit code:  2
   out:       
   err:        Cannot run program ""/$ALF_HOME/program/soffice"": java.io.IOException: error=2, No such file or directory
10:13:25,710 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /$ALF_HOME/alf_data


I've tried putting soffice as symbolic link in that directory but I still get the same error. I can get the transformations to work but I'd like to know how to resolve the errors if I could.

Cheers!

norgan
Champ in-the-making
Champ in-the-making
Good evening,
Hey belmekki, Thanks for your reply!

Unfortunately, I'm already using the full-setup file for Linux located at the wiki . On the OpenOffice Location prompt, the default location is $ALF_HOME/OpenOfficePortable/App/openoffice but there isn't anything there.

Hi there,
the installer looks for the OpenOfficePortable version of openoffice, which is Windows only. I did a
cp soffice.bin soffice.exe

and the installer continued as planned. This is a bug in the installer. I will still habe to see, if the system works all right now.

Regards, Norgan

jwrobel
Champ in-the-making
Champ in-the-making
Woooot! That did the trick Norgan! I haven't tried the installer again but I got it working nonetheless!

Steps:

$ locate soffice.bin
/usr/lib/openoffice.org/program/soffice.bin
$ cp /usr/lib/openoffice.org/program/soffice.bin /usr/lib/openoffice.org/program/soffice.exe
$ cd /$ALF_HOME/
$ mkdir program
$ ln -s /usr/lib/openoffice.org/program/soffice.exe soffice.exe

After I restarted Alfresco, the document translations worked!

Cheers!

jwrobel
Champ in-the-making
Champ in-the-making
ps
For some reason the naming of the symlink matters…

Wouldn't work:

$ ln -s /usr/lib/openoffice.org/program/soffice.exe soffice

Worked:

$ ln -s /usr/lib/openoffice.org/program/soffice.exe soffice.exe