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.9 platform.
Download (HTTP): https://curl.haxx.se/download/curl-7.47.1.tar.lzma
Download MD5 sum: 8242c073d8e5fc1c2a1aa946f1e903a4
Download size: 2.8 MB
Estimated disk space required: 56 MB (with tests)
Estimated build time: 0.4 SBU (additional 8.8 SBU for tests, with parallelism = 4)
Certificate Authority Certificates and OpenSSL-1.0.2g or GnuTLS-3.4.9
libidn-1.32, MIT Kerberos V5-1.14, OpenLDAP-2.4.44, Samba-4.3.4, c-ares, libmetalink, Libpsl, libssh2, nghttp2, mbed TLS (formerly known as PolarSSL), and SPNEGO
stunnel-5.30 (for the HTTPS and FTPS tests) and Valgrind-3.11.0
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
To run the test suite, issue: make test.
Now, as the root
user:
make install && cp -a docs docs-save && rm -rf docs/examples/.deps && find docs \( -name Makefile\* \ -o -name \*.1 \ -o -name \*.3 \) \ -exec rm {} \; && install -v -d -m755 /usr/share/doc/curl-7.47.1 && cp -v -R docs/* /usr/share/doc/curl-7.47.1 && rm -rf docs && mv -i docs-save doc
Simple tests to the new installed curl: curl --trace-ascii debugdump.txt
http://www.example.com/ and curl --trace-ascii d.txt --trace-time
http://example.com/. Inspect the locally created
trace files debugdump.txt
and
d.txt
, which contain version
downloaded files information, etc. One file has the time for each
action logged.
--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 ... -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 2016-02-21 12:38:55 -0800