The cURL package contains a utility and a library used for transferring files with URL syntax to any of the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download and upload files can be incorporated into other programs to support functions like streaming media.
This package is known to build and work properly using an LFS-7.7 platform.
Download (HTTP): http://curl.haxx.se/download/curl-7.40.0.tar.lzma
Download MD5 sum: d18fb866d97b536e8948833b84a58a73
Download size: 2.6 MB
Estimated disk space required: 41 MB (additional 7 MB for tests)
Estimated build time: 0.4 SBU (additional 10 SBU for tests)
Certificate Authority Certificates and OpenSSL-1.0.2 or GnuTLS-3.3.12
libidn-1.29, MIT Kerberos V5-1.13.1, OpenLDAP-2.4.40, Samba-4.1.17, c-ares, libmetalink, libssh2, and SPNEGO
stunnel-5.10 (for the HTTPS and FTPS tests) and Valgrind-3.10.1
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/curl
Install cURL by running the following commands:
./configure --prefix=/usr \ --disable-static \ --enable-threaded-resolver && make
Running the test suite is optional. About 2% of the tests fail. Increase in test time by each failed test is about 10%. Tests SBU above was obtained disabling failing tests, with:
cat >> tests/data/DISABLED << "EOF"
564
700
701
703
706
707
708
709
710
711
712
EOF
and running make test.
Now, as the root
user:
make install && find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; && install -v -d -m755 /usr/share/doc/curl-7.40.0 && cp -v -R docs/* /usr/share/doc/curl-7.40.0
--disable-static
: This
switch prevents installation of static versions of the libraries.
--enable-threaded-resolver
:
This switch enables cURL's builtin
threaded DNS resolver.
--with-gssapi
: This parameter adds
Kerberos 5 support to libcurl
.
--without-ssl --with-gnutls
: Use to
build with GnuTLS support instead
of OpenSSL for SSL/TLS.
find docs \( -name Makefile\* -o
-name \*.1 -o -name \*.3 \) -exec rm {} \;: This
command removes Makefiles
and man
files from the documentation directory that would otherwise be
installed by the commands that follow.
Last updated on 2015-02-23 00:16:54 -0500