2017-12-22 36 views
0

Cocoapod(Firebase)をインストールしようとすると、この問題が発生します。Cocoapodsがlibcurlで「https」をサポートしていないか無効になっていません

Installing Firebase (4.7.0) 

[!] Error installing Firebase 
[!] /usr/local/bin/curl -f -L -o /var/folders/xv/ghl7s0wx2m3_0hwh15spwfrc0000gn/T/d20171222-26613-2tuztl/file.tgz https://dl.google.com/dl/cpdc/51a9c1fa1090163e/Firebase-4.7.0.tar.gz --create-dirs --netrc-optional 

curl: (1) Protocol "https" not supported or disabled in libcurl 

どうしてですか?

答えて

0

curlをSSLをサポートしていないバージョンに再構築または交換した可能性があります。

修正するには、curlバージョンがSLLで構築されていることを確認する必要があります。

  • ダウンロードし、MacではOpenSSLの
  • https://www.openssl.org/source/
  • をインストール:次の手順に従います。

    ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl \ 
          -Wl,-rpath,/usr/local/ssl/lib 
        make 
        sudo make install 
    
  • が設定SSLとMacでカールをインストールし、そうでない場合はhttpsであなたのカールのコマンドは失敗します。 Macの

    • :試みる今

      SSL support:  enabled (OpenSSL) 
      
  • ./configure --with-ssl 
    make 
    sudo make install 
    
  • はそのSSLを確認し、あなたのconfigureステップの後にセットアップは、次のテキストのようなものが表示されるはずですあなたのCocoapodsをインストールする。

     pod install 
    
  • あなたは完全なhttpsカールの依存関係が表示されます。

    Analyzing dependencies 
    Downloading dependencies 
    Installing Firebase (4.8.0) 
    Installing FirebaseAnalytics (4.0.5) 
    Installing FirebaseCore (4.0.13) 
    
関連する問題