cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Unable to use libcurl to a site requiring client authentication

From: Paul Howarth <paul_at_city-fan.org>
Date: Fri, 27 May 2011 09:41:00 +0100

On 05/27/2011 08:46 AM, Jayaprakasam, Kannan wrote:
> I have requested root access to install the rpm you mentioned and
> waiting for it.
> Meanwhile I found that the curl library we are using is being built
> internally from downloaded source code. I tried building from the source
> myself but the the "configure" script is not building with ssl support:
> configure: WARNING: SSL disabled, you will not be able to use HTTPS,
> FTPS, NTLM and more.
> configure: WARNING: Use --with-ssl or --with-gnutls to address this.
> configure: WARNING: configure found only the libz header file, not the
> lib!
>
> I have set the env variables
> set CPPFLAGS="-I/usr/include/openssl"
> set LDFLAGS="-L/lib64"
>
> and am running ./configure.
>
> I have the openssl libraries in
> /lib64/.libcrypto.so.0.9.8e.hmac
> /lib64/.libcrypto.so.6.hmac
> /lib64/libcrypto.so.0.9.8e
> /lib64/libcrypto.so.6
> /lib64/libssl.so.0.9.8e
> /lib64/libssl.so.6
> /usr/lib64/openssl
>
> And the header files such as
> /usr/include/openssl/ssl.h
>
> Why doesn't it build with ssl support? The INSTALL file says it builds
> with ssl support by default if it can locate the ssl libraries.

The error message suggests that it's libz that it couldn't find, not the
SSL libraries themselves.

Try this:

export CPPFLAGS="$(pkg-config --cflags openssl)"
./configure --libdir=/usr/lib64 --with-ssl=/usr

And if you're building from source, you won't need my rpm packages.

Paul.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-27