cURL / Mailing Lists / curl-library / Single Mail


Re: One or more libs available at link-time are not available run-time

From: Nick Zitzmann <>
Date: Mon, 20 Aug 2012 11:42:29 -0600

On Aug 20, 2012, at 10:33 AM, Jeremy Hughes <> wrote:

>> -lssl refers to /usr/lib/libssl.dylib. /usr/bin/openssl is an executable
>> file, not a library.
> OK - thanks for that.
> In that case the other libraries that are referred to in the error message are presumably
> /usr/lib/libcrypto.dylib
> /usr/lib/libldap.dylib
> /usr/lib/libz.dylib

<PLUG>If you're building 7.27, then unless your application depends on an OpenSSL-specific feature, you are welcome to try out the native SSL option by configuring libcurl --with-darwinssl.</PLUG>

> Are you using a different set of configure options?

No. Are you installing libssh2 after building it? If not, then you'll probably need to adjust the header & library search paths in your CFLAGS and LDFLAGS environmental variables. You may also need to adjust LD_LIBRARY_PATH as someone else suggested; the man page to dlopen() suggests that the variable works on OS X as well as on GNU/Linux.

Nick Zitzmann

List admin:
Received on 2012-08-20