cURL / Mailing Lists / curl-library / Single Mail


Re: linking trouble: not found

From: Dan Fandrich <>
Date: Wed, 9 Jan 2008 12:37:05 -0800

On Wed, Jan 09, 2008 at 02:26:40PM -0600, queto putito wrote:
> The compilation is ok but when I try to run, it
> returns the following message:
> ./first_try: error while loading shared libraries:
> cannot open shared object file: No such
> file or directory
> is located at /usr/local/lib
> curl-config -cc returns gcc
> curl-config --cflags returns -I/usr/local/include
> curl-config --libs returns -L/usr/local/lib -lcurl
> curl-config --version returns libcurl 7.17.1
> I tried using a makefile and it's the same result
> I tried to set LD_LIBRARY_PATH to /usr/local/lib but
> it has no effect.

Did you set LD_LIBRARY_PATH at compile time or run time? It only makes
sense at run time. Could it be that itself has a missing
dependency? What does "ldd /usr/local/lib/" show?

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-01-09