- 21 May 2012, 17:16
#1521
I am setting up OPENCATS 0.9.1a on a shared VPS (Site5.com - CentOS 5.8 64-bit). I have OPENCATS working fine but I am trying to get AntiWord (0.37) set up and running. I was able to install Antiword from source as I have a BASH SSH shell. The setup is detecting that I have antiword installed in /home/two5hour/bin but it comes up with the following error when testing from the OPENCATS setup script.
Antiword binary failed to convert a DOC file to text properly (Should have returned 'This is a test document', returned '').
I believe it is because I could give it the full path of the executable but it cannot find the mapping files. The mapping files are in /home/two5hour/.antiword which is my home directory but the application is most likely running under Apache or some other user so when it looks for $HOME it is not returning the .antiword directory.
This document explains where it looks for mapping files:
http://linux.die.net/man/1/antiword
Thanks!
Antiword binary failed to convert a DOC file to text properly (Should have returned 'This is a test document', returned '').
I believe it is because I could give it the full path of the executable but it cannot find the mapping files. The mapping files are in /home/two5hour/.antiword which is my home directory but the application is most likely running under Apache or some other user so when it looks for $HOME it is not returning the .antiword directory.
This document explains where it looks for mapping files:
http://linux.die.net/man/1/antiword
Code: Select all
Is there any way I can get the installer to look in my home directory or find those mapping files?Files
Mapping files like 8859-1.txt
Antiword looks for its mapping files in three directories, in the order given:
(1) The directory specified by $ANTIWORDHOME
(2) The directory specified by $HOME/.antiword
(3) Directory /usr/share/antiword
The fontnames file
Antiword will look for its fontname file in the same directories as used for the mapping files.
The fontnames file contains the translation table from font names used by MS Word to font names used by PostScript.
NOTE:
Antiword cannot tell the difference between a file that does not exist and a file that cannot be opened for reading.
Thanks!