Forum Bugs

Unable to Find libxml2.so.2 in AWS Lambda Environment (NodeJS 10.x)

gtolenti
Hello,

I am trying to run PrinceXML (12.4) in AWS using Lambda. It works fine using NodeJS 8.10, but it doesn't work in 10.x.

This is the error: /var/task/node_modules/prince/prince/lib/prince/bin/prince: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

I checked both linux environments and the libraries are there.

In 8.10 the library is under /usr/lib64
In 10.x the library is in both /usr/lib64 and /lib64

The LD_LIBRARY_PATH is the same in both environments: /var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib

Does Prince use LD_LIBRARY_PATH to look up system libraries or is there another way it's being done?

Thanks!
mikeday
Which Prince package did you install?
gtolenti
It was the generic linux version (12.4). Looks like the issue was all in the AWS environment, their support team got everything sorted for me.

Thanks!