環境
Mac
OS 10.10.4
gvm
2.2.0
curl
7.37.1 (x86_64-apple-darwin14.0) libcurl/7.37.1 SecureTransport zlib/1.2.5
やったこと
1.gvmを使ってgradleのupdate
gvm install gradle
2.発生したエラー
$ gvm install groovy
Downloading: groovy 2.4.3
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/iju/.gvm/archives/groovy-2.4.3.zip or
/Users/iju/.gvm/archives/groovy-2.4.3.zip.zip, and cannot find /Users/iju/.gvm/archives/groovy-2.4.3.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.
3.対応したこと
https://github.com/gvmtool/gvm-cli/issues/327
にある通り、
echo insecure >> ~/.curlrc
をしてverificationをoffし、再度
gvm install groovy
しただけ。
まとめ
他にもあるっぽいけど、特に問題なければcurlのverificationをoffにするだけでよいっぽい。