cURL / Mailing Lists / curl-library / Single Mail


Re: problem from out of the blue: can't connect via libcurl

From: Daniel Stenberg <>
Date: Thu, 10 Dec 2009 20:08:07 +0100 (CET)

On Thu, 10 Dec 2009, Pete Wilson wrote:

> But running the app, I get (and I believe this may go to your question about
> more than one libcurl.a):
> client: error while loading shared libraries: cannot open
> shared object file: No such file or directory

This happens because your run-time linker - that is used to find all the libs
(which btw are .so files when they are shared) when you invoke your
application - doesn't find your locally installed library.

You can fix this several ways. One is to use the -rpath option with ld when
you link your app and another is to set the LD_LIBRARY_PATH environment
variable to point to the lib's dir.

List admin:
Received on 2009-12-10