CURL命令報錯:dyld: lazy symbol binding failed: Symbol not found: _SSL_load_error_strings解決辦法


 

Mac OS X 10.11.6, curl 命令報錯,錯誤如下:

 

dyld: lazy symbol binding failed: Symbol not found: _SSL_load_error_strings

  Referenced from: /usr/local/lib/libcurl.4.dylib

  Expected in: flat namespace

 

dyld: Symbol not found: _SSL_load_error_strings

  Referenced from: /usr/local/lib/libcurl.4.dylib

  Expected in: flat namespace

 

Trace/BPT trap: 5

 

解決辦法:

 

One solution was provided here

The idea is to make a static build of curl and then paste it to you /usr/bin/ or /usr/local/bin/. Briefly:

  1. ~$ xcode-select --install
  2. Download the latest version of curl.
  3. cd to the directory and run

    ~$ ./configure --disable-shared --with-darwinssl --enable-threaded-resolver

    ~$ make -j `sysctl -n hw.logicalcpu_max`

  4. Copy the compiled curl, which is located in ./src/curl to you /usr/bin/

Note: In the make command in 3, the sign "`" is indeed back quote, not single quote.

 

原文地址:http://unix.stackexchange.com/questions/164637/trying-to-install-curl-with-homebrew-getting-incompatible-library-version-for

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM