Nuxeo says I need to install wpd2text even though it is installed and in the system PATH

Greetings- I've been prompted to install wpd2text even though I've built and installed it on the machine. Is there something else I need to configure here? I'm running nuxeo platform 8.10 in AWS on RHEL 7.3 See below

Log:

2017-03-30 19:47:01,649 WARN  [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Command not available: wpd2text (command wpd2text not found in system path (descriptor CommandLineDescriptor[name=wpd2text,enabled=true,available=false,command=wpd2text,parameterString=#{inFilePath},testParameterString=,winParameterString=<null>,winTestParameterString=,winCommand=<null>,tester=<null>,readOutput=true,installationDirective=You need to install wpd2text (deb: libwpd-tools)  http://libwpd.sourceforge.net/download.html,installErrorMessage=<null>]). You need to install wpd2text (deb: libwpd-tools)  http://libwpd.sourceforge.net/download.html

system path:

[root@ip-10-0-4-253 ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
[root@ip-10-0-4-253 ~]#

confirming that rhel can see wpd2text:

[root@ip-10-0-4-253 ~]# which wpd2text
/usr/local/bin/wpd2text
[root@ip-10-0-4-253 ~]#

confirming that wpd2text works and is the correct version:

[root@ip-10-0-4-253 ~]# wpd2text
Usage: wpd2text [OPTION] <WordPerfect Document>

Options:
--info                Display document metadata instead of the text
--help                Shows this help message
--password <password> Try to decrypt password protected document
--version             Output wpd2text version
[root@ip-10-0-4-253 ~]# wpd2text --version
wpd2text 0.9.9
[root@ip-10-0-4-253 ~]#
0 votes

1 answers

1124 views

ANSWER



I took a hint from this ticket here https://jira.nuxeo.com/browse/NXP-20489 and was able to set jod.office.home=/bin/ and then create the below symlinks:

[root@ip-10-0-4-201 ~]# ls -al /bin/
/bin/soffice -> /opt/libreoffice5.3/program/soffice
/bin/wpd2text -> /usr/local/bin/wpd2text

and was able to get the logs to print this:

2017-04-03 21:04:08,506 INFO  [localhost-startStop-1] [org.nuxeo.runtime.model.impl.ComponentManagerImpl] Registering component: service:org.nuxeo.ecm.platform.commandline.executor.service.soffice
2017-04-03 21:04:08,506 INFO  [localhost-startStop-1] [org.nuxeo.runtime.model.impl.ComponentRegistry] Registering component: service:org.nuxeo.ecm.platform.commandline.executor.service.soffice
2017-04-03 21:04:08,506 INFO  [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component activated: service:org.nuxeo.ecm.platform.commandline.executor.service.soffice
2017-04-03 21:04:08,615 INFO  [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Registered command: soffice

2017-04-03 21:04:08,493 INFO  [localhost-startStop-1] [org.nuxeo.runtime.model.impl.ComponentManagerImpl] Registering component: service:org.nuxeo.ecm.platform.commandline.executor.service.wpd2text.contrib
2017-04-03 21:04:08,493 INFO  [localhost-startStop-1] [org.nuxeo.runtime.model.impl.ComponentRegistry] Registering component: service:org.nuxeo.ecm.platform.commandline.executor.service.wpd2text.contrib
2017-04-03 21:04:08,493 INFO  [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component activated: service:org.nuxeo.ecm.platform.commandline.executor.service.wpd2text.contrib
2017-04-03 21:04:08,497 INFO  [localhost-startStop-1] [org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent] Registered command: wpd2text
0 votes