Amazon web services 运行Go on AWS中编写的Lambda函数-加载共享库时出错

Amazon web services 运行Go on AWS中编写的Lambda函数-加载共享库时出错,amazon-web-services,go,aws-lambda,serverless-framework,aws-sam,Amazon Web Services,Go,Aws Lambda,Serverless Framework,Aws Sam,我的问题类似于:但我看不到答案,因此我将感谢任何形式的帮助 打印我的LD_LIBRARY_路径后,我得到以下输出: /lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib 我已经创建并部署了TensorFlow Lambda层 据我所知,Lambda层应该缓存在/opt/bin目录中,对吗?但是在文档中:我看到默认的缓存目录是~/.aws sam/layers pkg 一旦我尝试使用AWS

我的问题类似于:但我看不到答案,因此我将感谢任何形式的帮助

打印我的LD_LIBRARY_路径后,我得到以下输出:

/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib
我已经创建并部署了TensorFlow Lambda层

据我所知,Lambda层应该缓存在/opt/bin目录中,对吗?但是在文档中:我看到默认的缓存目录是
~/.aws sam/layers pkg

一旦我尝试使用AWS SAM运行Lambda函数,并且一旦我取消注释使用包(其中我使用go库导入tensorflow)的代码,我会得到以下错误:

error while loading shared libraries: libtensorflow.so.1: cannot open shared object file: No such file or directory

我甚至尝试将这些库包含在lib目录中,并将该lib目录作为LD\u LIBRARY\u路径的一部分。同样的结果。

您找到解决方案了吗?