curl / Mailing Lists / curl-library / Single Mail


Re: compile curl without md5 only for SFTP

From: Michael via curl-library <>
Date: Thu, 23 Mar 2017 10:07:42 +0000 (UTC)

Now I get:
* Protocol sftp not supported or disabled in libcurl* Unsupported protocol
by doing:
michael_at_michael-ubuntu:~/CPP/curl-7.53.1$ ./configure --disable-shared --enable-static --prefix=/tmp/curlstaticbuild --disable-ldap --disable-sspi --disable-debug --without-zlib

Many thanks

      From: Daniel Stenberg <>
 To: libcurl development <>
 Sent: Thursday, March 23, 2017 9:03 AM
 Subject: Re: compile curl without md5 only for SFTP
On Thu, 23 Mar 2017, Michael via curl-library wrote:

(the topic seems to mismatch with the question...)

> how to statically compile curl for only sftp?

You need to use configure's --disable-XXXX options for each protocol you want
to switch off. ./configure --help | grep '\-\-disable' shows what you have to
pick from.

> michael_at_michael-ubuntu:~$ ./configure --disable-shared --enable-static
> --prefix=/tmp/curlstaticbuild --disable-ldap --disable-sspi --disable-md5
> --without-zlib

There's no --disable-md5 option. Exactly which MD5 functionality are you
trying to get rid of?

> I get a md5 link error at runtime.

Please show us the exact error output so we can understand better what it is!


Received on 2017-03-23