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

上一篇:[Asp.Net]Understanding Built-In User and Group Accounts in IIS


下一篇:[重要公告] 关于禁止发布Windows系统及非法激活软件的通知