elwerene / libreoffice-convert

MIT License
241 stars 94 forks source link

Error: Could not find soffice binary #56

Closed aruproy closed 2 years ago

aruproy commented 2 years ago

Hi there - I have installed LibreOffice on Amazon Linux using RPMs and updated the PATH variable.

Binary version: LibreOffice_7.1.4_Linux_x86-64_rpm Install location: /opt/libreoffice7.1/program/

I can see the soffice.bin file and can access it from my NodeJs deployment directory (without specifying the absolute path). However, at runtime the libre.convert call is throwing error - Error: Could not find soffice binary

I am stuck here. I would greatly appreciate any help in resolving this issue.

elwerene commented 2 years ago

Ahoi! You just reported an issue which is already open: #49 You can crate a pull request and I can happily review and merge it!

aruproy commented 2 years ago

@elwerene Thank you for pointing me to the right direction.

Leaving notes for others -

The 'libreoffice-convert' library expects for the soffice binary under /usr/bin/soffice which soffice command allowed me to reconfirm the installation path. Then mapped the installation path ln -s /opt/libreoffice7.1/program/soffice /usr/bin/soffice

That's all!