source: networking/netlibs/curl.xml@ 03790ef

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 9.0 9.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 03790ef was 03790ef, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Update to wireshark-3.0.3.
Update to ristretto-0.8.5.
Update to curl-7.65.2.
Update to gvfs-1.40.2.
Update to grilo-0.3.9.
Update to cmake-3.15.0.
Update to bind-9.14.4.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21841 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY curl-download-http "https://curl.haxx.se/download/curl-&curl-version;.tar.xz">
8 <!ENTITY curl-download-ftp " ">
9 <!ENTITY curl-md5sum "2b1bde080347332f829718ca85b5f68a">
10 <!ENTITY curl-size "2.3 MB">
11 <!ENTITY curl-buildsize "73 MB (add 19 MB for tests)">
12 <!ENTITY curl-time "0.4 SBU (add 15 SBU for tests)">
13]>
14
15<sect1 id="curl" xreflabel="cURL-&curl-version;">
16 <?dbhtml filename="curl.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>cURL-&curl-version;</title>
24
25 <indexterm zone="curl">
26 <primary sortas="a-cURL">cURL</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to cURL</title>
31
32 <para>
33 The <application>cURL</application> package contains an utility
34 and a library used for transferring files with URL syntax to any of
35 the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
36 TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download
37 and upload files can be incorporated into other programs to support
38 functions like streaming media.
39 </para>
40
41 &lfs84_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>
47 Download (HTTP): <ulink url="&curl-download-http;"/>
48 </para>
49 </listitem>
50 <listitem>
51 <para>
52 Download (FTP): <ulink url="&curl-download-ftp;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download MD5 sum: &curl-md5sum;
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download size: &curl-size;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Estimated disk space required: &curl-buildsize;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated build time: &curl-time;
73 </para>
74 </listitem>
75 </itemizedlist>
76
77 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>Patch to fix DNS resolution issues: <ulink
81 url="&patch-root;/curl-7.65.1-fix_dns_segfaults-2.patch"/>
82 </para>
83 </listitem>
84 </itemizedlist>
85
86
87 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
88
89 <bridgehead renderas="sect4">Recommended</bridgehead>
90 <para role="recommended">
91 <xref role="runtime" linkend="make-ca"/> (runtime)
92 </para>
93
94 <bridgehead renderas="sect4">Optional</bridgehead>
95 <para role="optional">
96 <xref linkend="c-ares"/>,
97 <xref linkend="gnutls"/>,
98 <xref linkend="libidn2"/>,
99 <xref linkend="libpsl"/>,
100 <xref linkend="libssh2"/>,
101 <xref linkend="mitkrb"/>,
102 <xref linkend="nghttp2"/>,
103 <xref linkend="openldap"/>,
104 <xref linkend="samba"/>,
105 <ulink url="https://github.com/google/brotli/">Brotli</ulink>,
106 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
107 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>, and
108 <!--<ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
109 PolarSSL), and -->
110 <!-- mbedTLS/PolarSSL support was removed in 7.65.1 -->
111 <ulink url="http://spnego.sourceforge.net/">SPNEGO</ulink>
112 </para>
113
114 <bridgehead renderas="sect4">Optional if Running the Test Suite</bridgehead>
115 <para role="optional">
116 <!-- stunnel is still listed in the docs as required, but 7.58.0
117 tests completed happily without it, although the test for unit1323
118 reported that the tool set in the test case does not exist - ken -->
119 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
120 <xref linkend="valgrind"/> (this will slow the tests down and may cause failures.)
121 </para>
122
123 <para condition="html" role="usernotes">User Notes:
124 <ulink url="&blfs-wiki;/curl"/>
125 </para>
126 </sect2>
127
128 <sect2 role="installation">
129 <title>Installation of cURL</title>
130
131 <para>
132 First, apply a patch to fix DNS resolution issues:
133 </para>
134
135<screen><userinput>patch -Np1 -i ../curl-7.65.1-fix_dns_segfaults-2.patch</userinput></screen>
136
137
138 <para>
139 Install <application>cURL</application> by running the following
140 commands:
141 </para>
142
143<screen><userinput>./configure --prefix=/usr \
144 --disable-static \
145 --enable-threaded-resolver \
146 --with-ca-path=/etc/ssl/certs &amp;&amp;
147make</userinput></screen>
148
149<!--
150 For version 7.54.1 I got:
151 TESTDONE: 869 tests out of 869 reported OK: 100%
152 TESTDONE: 1092 tests were considered during 1080 seconds
153
154 <para>
155 Running the test suite is optional. About 2% of the tests fail. Increase
156 in test time by each failed test is about 10%. Tests SBU above was
157 obtained disabling failing tests, with:
158 </para>
159
160 2017-10-29 - bdubbs
161 For version 7.56.1 I had a lot of test failures which included long
162 timeouts. Could not determine the cause of the timeouts or failures,
163 but I was missing c-ares, MIT Kerberos, ldap, samba, and the six
164 external packages.
165
166 2017-12-01 - bdubbs
167 Still a lot of test failures. I did have c-ares, Kerberos, and ldap
168 installed this time. Best guess is that servers are not available.
169
170 2018-08-01 - renodr
171 No test failures, but I didn't have any of the optional dependencies except
172 for c-ares and libidn2. I might re-run this test suite before release with
173 all of the optional deps, but right now, it isn't a priority - rather
174 the security fix is.
175-->
176
177 <para>
178 To run the test suite, issue: <command>make test</command>.
179 Tests 323 and 1560 are known to fail.
180 <!-- Two (of 857) tests
181 fail for unknown reasons, and all tests fail is valgrind is installed. Moving
182 valgrind out of $PATH is recommended if you wish to run the test suite while
183 it is installed. -->
184<!--
185Added by Pierre for curl-7.59.0:
186no stunnel, no valgrind, no options
187Warning: smb server unexpectedly alive
188Warning: dict server unexpectedly alive
189TESTDONE: 950 tests out of 951 reported OK: 99%
190TESTFAIL: These test cases failed: 1148
191TESTDONE: 1189 tests were considered during 362 seconds.
192__________
193
194 if stunnel and valgrind are not installed, and also most options
195 (I had rtmpdump), the tests complete without problems.
196Warning: smb server unexpectedly alive
197Warning: dict server unexpectedly alive
198TESTDONE: 938 tests out of 938 reported OK: 100%
199TESTDONE: 1175 tests were considered during 355 seconds.
200 and no. I don't have smb - so commenting the rest of this:
201 To run the test suite, issue: <command>make test</command>. Many tests
202 may fail that depend on optional dependencies that may not be installed
203 or upstream servers that may not be available, especially for tests
204 numbered 700 and above.
205 Test time may be significantly increase due to hanging tests that fail.
206__________
207Added by Bruce for curl-7.60.0:
208TESTDONE: 957 tests out of 959 reported OK: 99%
209TESTFAIL: These test cases failed: 1139 1140
210TESTDONE: 1196 tests were considered during 1184 seconds.
211From the logs, both appear to be ipv6 releated.
212
213==========
214Added by Douglas for curl-7.61.0:
215TESTDONE: 961 tests out of 961 reported OK: 100%
216TESTDONE: 1202 tests were considered during 338 seconds.
217I only have c-ares and libidn2 installed, I will likely try before release
218with all optional dependencies in the book installed.
219
220=========
2217.61.1 NOTE: The test suite is extremely noisy, complaining about verification errors.
222It's possible this is due to openssl-1.1.1, BUT 79/79 tests report as 100% OK. I had
223c-ares, libpsl, and libidn1/2 installed. - Doug
224
225========
2267.62.0: All tests passed. libpsl, c-ares, libssh2, libidn2 installed.
227All 1098 tests report OK.
228
229=======
230Added by Douglas for curl-7.64.0:
231TESTDONE: 1022 tests out of 1023 reported OK: 99%
232TESTFAIL: These tests cases failed: 323
233TESTDONE: 1235 tests were considered during 1279 seconds.
234For dependencies, I had c-ares, gnutls, libidn2, libpsl, krb5, libssh2, nghttp2,
235OpenLDAP, Samba, stunnel, and Valgrind installed.
236=======
237Added by bdubbs for curl-7.64.1:
238TESTDONE: 1022 tests out of 1025 reported OK: 99%
239TESTFAIL: These test cases failed: 323 1139 1140
240TESTDONE: 1242 tests were considered during 1483 seconds
241
242=======
243Added by renodr for curl-7.65.1:
244TESTDONE: 996 tests out of 997 reported OK: 99%
245TESTFAIL: These test cases failed: 1560
246TESTDONE: 1249 tests were considered during 1091 seconds.
247All dependencies except for externals installed.
248=======
249Added by bdubbs for curl-7.65.2:
250TESTDONE: 1034 tests out of 1036 reported OK: 99%
251TESTFAIL: These test cases failed: 323 1560
252TESTDONE: 1254 tests were considered during 1362 seconds.
253
254Time above does not include test build time.
255
256All dependencies except for externals installed.
257-->
258 </para>
259
260 <para>
261 Now, as the <systemitem class="username">root</systemitem>
262 user:
263 </para>
264
265<screen role="root"><userinput>make install &amp;&amp;
266
267rm -rf docs/examples/.deps &amp;&amp;
268
269find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
270
271install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
272cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
273
274 <para>
275 Simple tests to the new installed <command>curl</command>:
276 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
277 and
278 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
279 Inspect the locally created trace files <filename>debugdump.txt</filename>
280 and <filename>d.txt</filename>, which contain version downloaded
281 files information, etc. One file has the time for each action logged.
282 </para>
283 </sect2>
284
285 <sect2 role="commands">
286 <title>Command Explanations</title>
287
288 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
289 href="../../xincludes/static-libraries.xml"/>
290
291 <para>
292 <parameter>--enable-threaded-resolver</parameter>: This switch enables
293 <application>cURL</application>'s builtin threaded DNS resolver.
294 </para>
295
296 <para>
297 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
298 switch sets the location of the BLFS Certificate Authority store.
299 </para>
300
301 <para>
302 <option>--with-gssapi</option>: This parameter adds
303 <application>Kerberos 5</application> support to
304 <filename class="libraryfile">libcurl</filename>.
305 </para>
306
307 <para>
308 <option>--without-ssl --with-gnutls</option>: Use to
309 build with <application>GnuTLS</application> support
310 instead of <application>OpenSSL</application> for SSL/TLS.
311 </para>
312
313 <para>
314 <option>--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt</option>: Use
315 this switch instead of <parameter>--with-ca-path</parameter> if
316 building with <application>GnuTLS</application> support
317 instead of <application>OpenSSL</application> for SSL/TLS.
318 </para>
319
320 <para>
321 <option>--with-libssh2</option>: This paramater adds
322 <application>SSH</application> support to cURL. This is disabled
323 by default.
324 </para>
325
326 <para>
327 <option>--enable-ares</option>: This paramater adds
328 support for DNS resolution through the c-ares library. It is disabled
329 by default, but does speed up DNS resolution queries.
330 </para>
331
332 <para>
333 <command>find docs ... -exec rm {} \;</command>: This command removes
334 <filename>Makefiles</filename> and man files from the documentation
335 directory that would otherwise be installed by the commands that follow.
336 </para>
337
338 </sect2>
339
340 <sect2 role="content">
341 <title>Contents</title>
342
343 <segmentedlist>
344 <segtitle>Installed Programs</segtitle>
345 <segtitle>Installed Library</segtitle>
346 <segtitle>Installed Directories</segtitle>
347
348 <seglistitem>
349 <seg>
350 curl and curl-config
351 </seg>
352 <seg>
353 libcurl.so
354 </seg>
355 <seg>
356 /usr/include/curl and
357 /usr/share/doc/curl-&curl-version;
358 </seg>
359 </seglistitem>
360 </segmentedlist>
361
362 <variablelist>
363 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
364 <?dbfo list-presentation="list"?>
365 <?dbhtml list-presentation="table"?>
366
367 <varlistentry id="curl-prog">
368 <term><command>curl</command></term>
369 <listitem>
370 <para>
371 is a command line tool for transferring files with URL syntax.
372 </para>
373 <indexterm zone="curl curl-prog">
374 <primary sortas="b-curl">curl</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="curl-config">
380 <term><command>curl-config</command></term>
381 <listitem>
382 <para>
383 prints information about the last compile, like libraries
384 linked to and prefix setting.
385 </para>
386 <indexterm zone="curl curl-config">
387 <primary sortas="b-curl-config">curl-config</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="libcurl">
393 <term><filename class="libraryfile">libcurl.so</filename></term>
394 <listitem>
395 <para>
396 provides the API functions required by
397 <command>curl</command> and other programs.
398 </para>
399 <indexterm zone="curl libcurl">
400 <primary sortas="c-libcurl">libcurl.so</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 </variablelist>
406
407 </sect2>
408
409</sect1>
Note: See TracBrowser for help on using the repository browser.