jcupitt / docker-builds

Various sample dockerfiles
91 stars 31 forks source link

unable to run in aws lamda #3

Closed sathishravula closed 5 years ago

sathishravula commented 5 years ago

vips: error while loading shared libraries: libvips.so.42: cannot open shared object file:

jcupitt commented 5 years ago

You'll need to give some more information! What are you trying to achieve, what did you do, what libvips version, what platform, etc. etc.

sathishravula commented 5 years ago

i used libvips-amazonlinux2 docker file with 8.8.1 version and extracted tar from /usr/local/vips. i created zip file it having /lib /bin /include /share
later added to aws layer, this layer added to aws lamda function . i am trying to excute the shell commands from python like (os.system('vips --version'), i am getting the error

jcupitt commented 5 years ago

I think you need to set LD_LIBRARY_PATH or configure ld.so.conf. This is an AWS question rather than anything about pyvips, so I would ask on their forum.