The cURL package contains an 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.
本パッケージは LFS-10.1 において正しくビルドでき動作することが確認されています。
ダウンロード (HTTP): https://curl.haxx.se/download/curl-7.75.0.tar.xz
ダウンロード MD5 sum: 9730df8636d67b4e256ebc49daf27246
ダウンロードサイズ: 2.4 MB
必要ディスク容量: 100 MB (add 17 MB for tests)
概算ビルド時間: 0.3 SBU (add 14 SBU for tests)
make-ca-1.7 (実行時)
Brotli-1.0.9, c-ares-1.17.1, GnuTLS-3.7.0, libidn2-2.3.0, libpsl-0.21.1, libssh2-1.9.0, MIT Kerberos V5-1.19.1, nghttp2-1.43.0, OpenLDAP-2.4.57, Samba-4.13.4, impacket, libmetalink, librtmp, ngtcp2, quiche, and SPNEGO
stunnel-5.58 (for the HTTPS and FTPS tests) and Valgrind-3.16.1 (this will slow the tests down and may cause failures.)
First, adapt the tests to python3:
grep -rl '#!.*python$' | xargs sed -i '1s/python/&3/'
以下のコマンドを実行して cURL をビルドします。
./configure --prefix=/usr \ --disable-static \ --enable-threaded-resolver \ --with-ca-path=/etc/ssl/certs && make
To run the test suite, issue: make test.
root
ユーザーになって以下を実行します。
make install && 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.75.0 && cp -v -R docs/* /usr/share/doc/curl-7.75.0
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
:
このスイッチはスタティックライブラリをインストールしないようにします。
--enable-threaded-resolver
:
This switch enables cURL's builtin
threaded DNS resolver.
--with-ca-path=/etc/ssl/certs
: This
switch sets the location of the BLFS Certificate Authority store.
--with-gssapi
: このパラメーターは libcurl
に対して Kerberos
5 サポートを追加します。
--without-ssl --with-gnutls
: SSL/TLS
に対して OpenSSL ではなく GnuTLS を用いてビルドすることを指示します。
--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt
:
Use this switch instead of --with-ca-path
if building with
GnuTLS support instead of
OpenSSL for SSL/TLS.
--with-libssh2
: This paramater adds
SSH support to cURL. This is
disabled by default.
--enable-ares
: This paramater adds
support for DNS resolution through the c-ares library. It is
disabled by default, but does speed up DNS resolution queries.
find docs ... -exec rm {}
\;: このコマンドはドキュメントディレクトリにある Makefiles
ファイルと man ファイルを削除します。
そして以下に示すコマンドによりドキュメントをインストールします。
最終更新日: 2021-02-20 14:30:09 +0900