cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: library path or makefile issue?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 25 Mar 2002 09:12:24 +0100 (MET)

On Sun, 24 Mar 2002 theexperts_at_allprodirect.com wrote:

> Thanks again for the pointers.
>
> $ ./test.cgi
> ld.so.1: ./test.cgi: fatal: libcurl.so.2: open failed: No such file or
> directory Killed

This happens because you use shared libraries that are dynamicly loaded when
you invoke the command, and in this case the loader doesn't find the proper
library.

This can be fixed in several different ways, both by using the -R option to
ld or you can set LD_LIBRARY_PATH to include the directory in which you have
the libs:

 (sh/bash)
 $ export LD_LIBRARY_PATH=$HOME/lib
 (csh/tcsh)
 $ setenv LD_LIBRARY_PATH $HOME/lib

... then run it again!

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-03-25