Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

需要重新安装pycurl #1

Closed
fanyizhen1995 opened this issue Dec 13, 2019 · 2 comments
Closed

需要重新安装pycurl #1

fanyizhen1995 opened this issue Dec 13, 2019 · 2 comments

Comments

@fanyizhen1995
Copy link

fanyizhen1995 commented Dec 13, 2019

问题:运行 lambda 会报错:pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backend (nss)

问题原因:AWS 升级了 Lambda 环境 ( 详情参加 aws-solutions/serverless-image-handler#127).

解决方法:重新编译安装 pycurl,然后打包源代码。

具体步骤:在 Linux 环境下运行指令

PYCURL_SSL_LIBRARY=openssl pip install pycurl -t pycurl
cd pycurl
cp * <你的源代码文件夹>

在第一步执行的之前需要确保系统中已经安装了 libcurl-devel 和 openssl-devel,若没有安装则通过以下指令安装:

yum install libcurl-devel
yum install openssl-devel
@JoeShi
Copy link
Owner

JoeShi commented Dec 16, 2019

是amazon linux 1么?我记得是

@fanyizhen1995
Copy link
Author

对的,我查了下大部分是runtime是在 amz linux 上,新出的 runtime,比如 nodejs.12.x 这种是在 amz linux 2 上。
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

然后 lambda 升级环境这件事是今年7月的事情。

@JoeShi JoeShi closed this as completed Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants