github上的解决方案
https://github.com/archlinuxfr/yaourt/issues/287
curl_easy_perform()返回值说明
在移植别人的sdk的时候发现
errno 2 好像是缺少一个文件的意思.
curl_easy_perform()返回值说明
CURLE_SSL_CACERT_BADFILE, /* 77 - could not load CACERT file, missing 77: problem with the SSL CA cert (path? access rights?)
https://curl.haxx.se/docs/caextract.html
从这个网站上下载最新的cacert.pem 然后放在/etc/ssl/certs/ca-certificates.crt,这样就不会报错了.
应该是缺少ca(好像是认证信息的意思)