You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.
under /opt we put libraries our lambda would require to run .
in the lambda envrionment , we'd had to overwrite the default LD_LIBRARY_PATH to search under the newly library path first : $LAMBDA_TASK_ROOT/lib:$LAMBDA_TASK_ROOT/lib64:$LAMBDA_RUNTIME_DIR:$LAMBDA_RUNTIME_DIR/lib:$LAMBDA_TASK_ROOT:/opt/lib:/lib64:/usr/lib64
when the lambda ran it failed with:
/var/task/main: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /opt/lib/libheif.so.1)
but both were included in our newley created layer with img2lambda:
$ unzip -l lambda-img/layer-1.zip
Archive: lambda-img/layer-1.zip
Length Date Time Name
If you are storing libraries under /opt/lib and /opt/lib64, shouldn't $LAMBDA_TASK_ROOT/lib:$LAMBDA_TASK_ROOT/lib64:$LAMBDA_RUNTIME_DIR:$LAMBDA_RUNTIME_DIR/lib:$LAMBDA_TASK_ROOT:/opt/lib:/lib64:/usr/lib64
be $LAMBDA_TASK_ROOT/lib:$LAMBDA_TASK_ROOT/lib64:$LAMBDA_RUNTIME_DIR:$LAMBDA_RUNTIME_DIR/lib:$LAMBDA_TASK_ROOT:/opt/lib:/opt/lib64:/lib64:/usr/lib64
under /opt we put libraries our lambda would require to run .
in the lambda envrionment , we'd had to overwrite the default LD_LIBRARY_PATH to search under the newly library path first : $LAMBDA_TASK_ROOT/lib:$LAMBDA_TASK_ROOT/lib64:$LAMBDA_RUNTIME_DIR:$LAMBDA_RUNTIME_DIR/lib:$LAMBDA_TASK_ROOT:/opt/lib:/lib64:/usr/lib64
when the lambda ran it failed with:
/var/task/main: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /opt/lib/libheif.so.1)
but both were included in our newley created layer with img2lambda:
$ unzip -l lambda-img/layer-1.zip
Archive: lambda-img/layer-1.zip
Length Date Time Name
13762736 01-25-2019 10:47 lib/libMagickCore-7.Q16HDRI.so.6
3155944 01-25-2019 10:47 lib/libMagickWand-7.Q16HDRI.so.6
10996664 01-25-2019 10:47 lib/libde265.so.0
6577608 01-25-2019 10:47 lib/libheif.so.1
178376 01-25-2019 10:47 lib64/ld-linux-x86-64.so.2
2066416 01-25-2019 10:47 lib64/libc.so.6
19208 01-25-2019 10:47 lib64/libdl.so.2
92736 01-25-2019 10:47 lib64/libgcc_s.so.1
187576 01-25-2019 10:47 lib64/libgomp.so.1
281096 01-25-2019 10:47 lib64/libjpeg.so.62
1465520 01-25-2019 10:47 lib64/libm.so.6
149272 01-25-2019 10:47 lib64/libpthread.so.0
1590808 01-25-2019 10:47 lib64/libstdc++.so.6
so is adding libraries under /opt supported ?
The text was updated successfully, but these errors were encountered: