curl-library
Re: problem from out of the blue: can't connect via libcurl
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 10 Dec 2009 20:08:07 +0100 (CET)
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: libcurl.so.4: 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.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-12-10