Open kaldebert opened 3 years ago
Hi @kaldebert,
it search the library libgs.so
in the folder you set using the evn variable GS4JS_HOME
. When the module is loaded it needs to load the shared library libgs.so
otherwise you get the error you reported, An idea could be to copy the library in the folder of your project and the try to install it.
Es.
The folder for your project is my-project
and you copy the content of the folder /usr/local/src/ghostscript/ghostscript-$GS_VERSION/sobin/*
to my-project/gs
The you can install using the following command:
npm install ghostscript4js --GS4JS_HOME=../../../gs
I hope that this help you.
This issue is connected to https://github.com/NickNaso/ghostscript4js/issues/61
Is it possible to use
ghostscript4js
andghostscript
in a serverless environment as AWS Lambda (and Layers)?I tried to install both
ghostscript4js
andghostscript
from a Dockerfile to be uploaded in a AWS Layer (Lambda).But when the AWS Lambda is called, I got this error:
Where should be the
libgs
file during the runtime? In the GS4JS_HOME folder or is it copied in another folder during ghostscript4js'installation?