cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: install problems

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 9 Oct 2001 00:51:28 +0200 (MET DST)

On Mon, 8 Oct 2001, Dave Schultz wrote:

> configure --disable-shared --prefix=/opt/userid/curl --with-ssl
> ran without errors
> make
> ran without errors
> make install
> ran without errors
>
> curl was compiled and placed in the prefix directory
>
> /opt/userid/curl/bin/curl
>
> yielded...ld.so.1: ./curl: fatal: libcurl.so.2: open failed: no such file
> or directory
>
> my goal is to produce a standalone curl install for solaris. Are there
> any standalone executables for curl?

You mean to download? I guess most people build it as made by default, which
is with a shared libcurl library.

> If not, how can I resolve the references above?

I personally build curl with --disable-shared all the time on Solaris (since
it makes debugging so much easier) and I never had this problem.

What compiler are you using? Did the configure script or config.log contain
any interesting hints?

Are you sure it was this static build that actually got installed there?

After having run 'make', you can check with the "ldd src/curl" to see that
curl does not depend on a shared libcurl (*). After make install you can
check the installed binary as well.

(*) = My Solaris binary of a late curl version lists these libraries with
ldd:

% ldd curl
        libresolv.so.2 => /usr/lib/libresolv.so.2
        libdl.so.1 => /usr/lib/libdl.so.1
        libsocket.so.1 => /usr/lib/libsocket.so.1
        libnsl.so.1 => /usr/lib/libnsl.so.1
        libc.so.1 => /usr/lib/libc.so.1
        libmp.so.2 => /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1

... there's just no libcurl.so in there!

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2001-10-09