2016-01-21 78 views
3

我在Mac OS X 10.11.2上使用終端,我無法處理任何https請求。我總是得到這個錯誤:如何在Mac OS X上啓用捲曲SSL?

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

我試過,但我得到一個「錯誤的目錄」錯誤:

./configure --with-ssl=/usr/local/ssl 

任何意見將是有益的。

編輯:

這是試圖使用SSL來安裝時,我得到的錯誤:

configure: error: OpenSSL libs and/or directories were not found where specified! 

SOLUTION:

對於Mac OS X 10.6或更高版本使用此啓用S​​SL:

./configure --with-darwinssl 
+0

你試過'捲曲 - -ssl'? – danielmhanover

+0

「安裝的libcurl版本不支持這個」我試着安裝Homebrew,但不能通過終端,因爲它是一個https請求。 – Ben

+0

你的情況下./configure文件的位置是什麼? –

回答

5

SOLUTION:

對於Mac OS X 10.6或更高使用此,以使SSL:

./configure --with-darwinssl 
+0

'-bash:./configure:沒有這樣的文件或目錄' - 怎麼辦?我的賞金:http://stackoverflow.com/questions/39287906/error-while-installing-firebase-via-cocoapods/39300838?noredirect = 1#comment65998448_39300838 –

+0

哪裏是捲曲安裝在MAC請? –