shelfio / libreoffice-lambda-layer

MIT License
108 stars 21 forks source link

Not found : lib64/libc.so.6: version `GLIBC_2.25' not found (required by /tmp/instdir/program/libmergedlo.so With AWS Lambda python 3.8 #32

Open dhaval-radadia opened 3 years ago

dhaval-radadia commented 3 years ago

I am trying to convert document and jpg file to pdf using lambda (Python) but I got the following error.

_getting error file not found: /tmp/instdir/program/soffice.bin: /lib64/libc.so.6: version `GLIBC2.25' not found (required by /tmp/instdir/program/libmergedlo.so)

Used command:

'export HOME=/tmp && /tmp/instdir/program/soffice.bin --headless --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --norestore --convert-to pdf --outdir /tmp/2020-10-23-06:35:33/'/tmp/2020-10-23-06:35:33/2020-10-21.jpg'

Used Lambda Layer : arn:aws:lambda:eu-west-1:764866452798:layer:libreoffice-gzip:1

randomhash commented 3 years ago

the serverless app repo version is compiled against Amazon Linux 2, and you're most likely running it under an Amazon Linux 1 instance