nanocoding

Protocol https not supported or disabled in libcurl

最終更新:

28096@mixi

- view
だれでも歓迎! 編集
curl で https な URL を叩こうとしたとき、
curl: (1) Protocol https not supported or disabled in libcurl
こういうエラーが出るのは、curl が SSL 有効にしてビルドされてないため。
sudo port uninstall curl
sudo port clean --all curl

とする。(下の行は必要だったのか知らない)

次に、

sudo port edit curl

とやって、

configure.args \
   --disable-ipv6 \
   --without-libidn \
   --without-libssh2 \
   --without-ssl \
   --disable-ldap \
   --with-zlib=${prefix}

となっているところを

configure.args \
   --disable-ipv6 \
   --without-libidn \
   --without-libssh2 \
   --with-ssl \
   --disable-ldap \
   --with-zlib=${prefix}

に変える。

この時点で自分の環境には、

/opt/local/bin/openssl
/usr/bin/openssl

の2つがインストールされていた。

最後に、

sudo port install curl

で終了。

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

記事メニュー
目安箱バナー