cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: install problem: configure couldn't find libz on Solaris

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 19 Feb 2004 23:13:56 +0100 (CET)

On Thu, 19 Feb 2004, spage wrote:

> checking size of off_t... configure: error: cannot compute sizeof
> (off_t), 77

...

> configure:27472: gcc -o conftest -g -O2 conftest.c -lz -lssl
> -lcrypto -ldl -lsocket -lnsl >&5
> configure:27475: $? = 0
> configure:27477: ./conftest
> ld.so.1: ./conftest: fatal: libz.so: open failed: No such file or
> directory
>
> I have a libz.so in /usr/local/lib. Setting LD_LIBRARY_PATH=/usr/local/lib
> solved this problem. You might want to add this suggestion to docs/INSTALL.

You have any suggestion on how to put it?

> What's strange is that earlier configure seems to run another program
> that depends on lz:

...

> and that doesn't fail ("checking for inflateEnd in -lz... yes").

That's because the first test actually runs a program and thus uses the
run-time linker that needs the lib. This latter check only links a test file
to see if it can link, and that doesn't use LD_LIBRARY_PATH.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-19

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET