source: networking/netlibs/curl.xml@ f9fdb6f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn elogind 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 f9fdb6f was f9fdb6f, checked in by Tim Tassonis <stuff@…>, 5 years ago

Update to curl-7.63.0

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

  • Property mode set to 100644
File size: 11.6 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 "f43d618cc49c1820d3a2fed31e451d4c">
10 <!ENTITY curl-size "2.3 MB">
11 <!ENTITY curl-buildsize "76 MB (add 13 MB for tests)">
12 <!ENTITY curl-time "0.3 SBU (add 5.6 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 &lfs83_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">cURL Dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Recommended</bridgehead>
80 <para role="recommended">
81 <xref role="runtime" linkend="make-ca"/> (runtime)
82 </para>
83
84 <bridgehead renderas="sect4">Optional</bridgehead>
85 <para role="optional">
86 <xref linkend="c-ares"/>,
87 <xref linkend="gnutls"/>,
88 <xref linkend="libidn2"/>,
89 <xref linkend="libpsl"/>,
90 <xref linkend="libssh2"/>,
91 <xref linkend="mitkrb"/>,
92 <xref linkend="nghttp2"/>,
93 <xref linkend="openldap"/>,
94 <xref linkend="samba"/>,
95 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
96 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
97 <ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
98 PolarSSL), and
99 <ulink url="http://spnego.sourceforge.net/">SPNEGO</ulink>
100 </para>
101
102 <bridgehead renderas="sect4">Optional if Running the Test Suite</bridgehead>
103 <para role="optional">
104 <!-- stunnel is still listed in the docs as required, but 7.58.0
105 tests completed happily without it, although the test for unit1323
106 reported that the tool set in the test case does not exist - ken -->
107 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
108 <xref linkend="valgrind"/> (this will slow the tests down and may cause failures.)
109 </para>
110
111 <para condition="html" role="usernotes">User Notes:
112 <ulink url="&blfs-wiki;/curl"/>
113 </para>
114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of cURL</title>
118
119 <para>
120 Install <application>cURL</application> by running the following
121 commands:
122 </para>
123
124<screen><userinput>./configure --prefix=/usr \
125 --disable-static \
126 --enable-threaded-resolver \
127 --with-ca-path=/etc/ssl/certs &amp;&amp;
128make</userinput></screen>
129
130<!--
131 For version 7.54.1 I got:
132 TESTDONE: 869 tests out of 869 reported OK: 100%
133 TESTDONE: 1092 tests were considered during 1080 seconds
134
135 <para>
136 Running the test suite is optional. About 2% of the tests fail. Increase
137 in test time by each failed test is about 10%. Tests SBU above was
138 obtained disabling failing tests, with:
139 </para>
140
141 2017-10-29 - bdubbs
142 For version 7.56.1 I had a lot of test failures which included long
143 timeouts. Could not determine the cause of the timeouts or failures,
144 but I was missing c-ares, MIT Kerberos, ldap, samba, and the six
145 external packages.
146
147 2017-12-01 - bdubbs
148 Still a lot of test failures. I did have c-ares, Kerberos, and ldap
149 installed this time. Best guess is that servers are not available.
150
151 2018-08-01 - renodr
152 No test failures, but I didn't have any of the optional dependencies except
153 for c-ares and libidn2. I might re-run this test suite before release with
154 all of the optional deps, but right now, it isn't a priority - rather
155 the security fix is.
156-->
157
158 <para>
159 To run the test suite, issue: <command>make test</command>. <!-- Two (of 857) tests
160 fail for unknown reasons, and all tests fail is valgrind is installed. Moving
161 valgrind out of $PATH is recommended if you wish to run the test suite while
162 it is installed. -->
163<!--
164Added by Pierre for curl-7.59.0:
165no stunnel, no valgrind, no options
166Warning: smb server unexpectedly alive
167Warning: dict server unexpectedly alive
168TESTDONE: 950 tests out of 951 reported OK: 99%
169TESTFAIL: These test cases failed: 1148
170TESTDONE: 1189 tests were considered during 362 seconds.
171__________
172
173 if stunnel and valgrind are not installed, and also most options
174 (I had rtmpdump), the tests complete without problems.
175Warning: smb server unexpectedly alive
176Warning: dict server unexpectedly alive
177TESTDONE: 938 tests out of 938 reported OK: 100%
178TESTDONE: 1175 tests were considered during 355 seconds.
179 and no. I don't have smb - so commenting the rest of this:
180 To run the test suite, issue: <command>make test</command>. Many tests
181 may fail that depend on optional dependencies that may not be installed
182 or upstream servers that may not be available, especially for tests
183 numbered 700 and above.
184 Test time may be significantly increase due to hanging tests that fail.
185__________
186Added by Bruce for curl-7.60.0:
187TESTDONE: 957 tests out of 959 reported OK: 99%
188TESTFAIL: These test cases failed: 1139 1140
189TESTDONE: 1196 tests were considered during 1184 seconds.
190From the logs, both appear to be ipv6 releated.
191
192==========
193Added by Douglas for curl-7.61.0:
194TESTDONE: 961 tests out of 961 reported OK: 100%
195TESTDONE: 1202 tests were considered during 338 seconds.
196I only have c-ares and libidn2 installed, I will likely try before release
197with all optional dependencies in the book installed.
198
199=========
2007.61.1 NOTE: The test suite is extremely noisy, complaining about verification errors.
201It's possible this is due to openssl-1.1.1, BUT 79/79 tests report as 100% OK. I had
202c-ares, libpsl, and libidn1/2 installed. - Doug
203
204========
2057.62.0: All tests passed. libpsl, c-ares, libssh2, libidn2 installed.
206All 1098 tests report OK.
207-->
208 </para>
209
210 <para>
211 Now, as the <systemitem class="username">root</systemitem>
212 user:
213 </para>
214
215<screen role="root"><userinput>make install &amp;&amp;
216
217rm -rf docs/examples/.deps &amp;&amp;
218
219find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
220
221install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
222cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
223
224 <para>
225 Simple tests to the new installed <command>curl</command>:
226 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
227 and
228 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
229 Inspect the locally created trace files <filename>debugdump.txt</filename>
230 and <filename>d.txt</filename>, which contain version downloaded
231 files information, etc. One file has the time for each action logged.
232 </para>
233 </sect2>
234
235 <sect2 role="commands">
236 <title>Command Explanations</title>
237
238 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
239 href="../../xincludes/static-libraries.xml"/>
240
241 <para>
242 <parameter>--enable-threaded-resolver</parameter>: This switch enables
243 <application>cURL</application>'s builtin threaded DNS resolver.
244 </para>
245
246 <para>
247 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
248 switch sets the location of the BLFS Certificate Authority store.
249 </para>
250
251 <para>
252 <option>--with-gssapi</option>: This parameter adds
253 <application>Kerberos 5</application> support to
254 <filename class="libraryfile">libcurl</filename>.
255 </para>
256
257 <para>
258 <option>--without-ssl --with-gnutls</option>: Use to
259 build with <application>GnuTLS</application> support
260 instead of <application>OpenSSL</application> for SSL/TLS.
261 </para>
262
263 <para>
264 <option>--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt</option>: Use
265 this switch instead of <parameter>--with-ca-path</parameter> if
266 building with <application>GnuTLS</application> support
267 instead of <application>OpenSSL</application> for SSL/TLS.
268 </para>
269
270 <para>
271 <command>find docs ... -exec rm {} \;</command>: This command removes
272 <filename>Makefiles</filename> and man files from the documentation
273 directory that would otherwise be installed by the commands that follow.
274 </para>
275
276 </sect2>
277
278 <sect2 role="content">
279 <title>Contents</title>
280
281 <segmentedlist>
282 <segtitle>Installed Programs</segtitle>
283 <segtitle>Installed Library</segtitle>
284 <segtitle>Installed Directories</segtitle>
285
286 <seglistitem>
287 <seg>
288 curl and curl-config
289 </seg>
290 <seg>
291 libcurl.so
292 </seg>
293 <seg>
294 /usr/include/curl and
295 /usr/share/doc/curl-&curl-version;
296 </seg>
297 </seglistitem>
298 </segmentedlist>
299
300 <variablelist>
301 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
302 <?dbfo list-presentation="list"?>
303 <?dbhtml list-presentation="table"?>
304
305 <varlistentry id="curl-prog">
306 <term><command>curl</command></term>
307 <listitem>
308 <para>
309 is a command line tool for transferring files with URL syntax.
310 </para>
311 <indexterm zone="curl curl-prog">
312 <primary sortas="b-curl">curl</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="curl-config">
318 <term><command>curl-config</command></term>
319 <listitem>
320 <para>
321 prints information about the last compile, like libraries
322 linked to and prefix setting.
323 </para>
324 <indexterm zone="curl curl-config">
325 <primary sortas="b-curl-config">curl-config</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="libcurl">
331 <term><filename class="libraryfile">libcurl.so</filename></term>
332 <listitem>
333 <para>
334 provides the API functions required by
335 <command>curl</command> and other programs.
336 </para>
337 <indexterm zone="curl libcurl">
338 <primary sortas="c-libcurl">libcurl.so</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 </variablelist>
344
345 </sect2>
346
347</sect1>
Note: See TracBrowser for help on using the repository browser.