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:
~$ xcode-select --install
- Download the latest version of curl.
-
cd to the directory and run
~$ ./configure --disable-shared --with-darwinssl --enable-threaded-resolver
~$ make -j `sysctl -n hw.logicalcpu_max`
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