ソリューション
ブルーノの投稿を使って解決策を見つけましたが、もっと具体的にする必要があると感じたので、これは明らかに私がしたことです。
- cacert.pemを私の〜/ .sshディレクトリにダウンロードしました(これがどこに行くべきかわかりませんが、解決策を見つけようとしているときに誰かが同じようなことをするのを見たので、ここに置きます)。
- インストール用にenvvarCURL_CA_BUNDLEを設定します。これは実際には、失敗によって提案されたWebサイトのソリューション番号4です。私は彼らが言っていることを誤解しました(簡単な例は私に何時間もの混乱を救ったかもしれません)。とにかく、.pemファイルへのフルパスを指定する必要があります。そうすれば、このようにインストールできます。そして、それがインストールされます。
$ CURL_CA_BUNDLE=~/.ssh/cacert.pem ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
元の質問
どうすればいいですか
- 自作をインストールする、または
- 自作をインストールできるようにSSLでcurlをインストールしますか?
私はMacOSXLeopardを使用しています。
自作をインストールしようとしていますが、次のエラーが発生します:
$ ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
==> The following directories will be made group writable:
/usr/local/bin
/usr/local/lib
/usr/local/lib/pkgconfig
/usr/local/share/man/man1
/usr/local/share/man/man3
Press enter to continue
==> /usr/bin/sudo /bin/chmod g+w /usr/local/bin /usr/local/lib /usr/local/lib/pkgconfig /usr/local/share/man/man1 /usr/local/share/man/man3
==> Downloading and Installing Homebrew...
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
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). The default
bundle is named curl-ca-bundle.crt; 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.
gzip: stdin: unexpected end of file
/usr/bin/tar: Child returned status 1
/usr/bin/tar: Error exit delayed from previous errors
Failed during: /bin/bash -o pipefail -c '/usr/bin/curl -sSfL https://github.com/mxcl/homebrew/tarball/master | /usr/bin/tar xz -m --strip 1'
macportsでcurlをインストールして+sslを指定しようとしましたが、うまくいきませんでした(申し訳ありませんが、エラーが何であったか覚えていません。その時点までに約1時間かかったので、やりたくありません。もう一度)。macportsからcurlをアンインストールしてから実行する$ whereis curl
と、何も見つかりません。
だから私は上記のエラーメッセージで提案されたサイトに行きます。ほとんどのオプションは適用できないようですが、オプション5はある程度意味があります。
より良い/異なる/新しいCA証明書バンドルを入手してください!1つのオプションは、curlビルドツリールートで「makeca-bundle」を実行して、最近のFirefoxブラウザが使用するものを抽出することです。
だから私はcurlソースコードを取得して、、、、、そして最後に$ ./buildconf
を$ ./configure
実行し$ make
ます。チェックすると「/usr/ bin/curl」と表示されます。$ make ca-bundle
$ sudo make install
$ whereis curl
しかし、(新しいターミナルウィンドウで)homebrew installコマンドを再度実行すると、上記と同じエラーが発生します。