source: networking/netlibs/curl.xml@ 4b1b99e8

elogind
Last change on this file since 4b1b99e8 was 4b1b99e8, checked in by DJ Lucas <dj@…>, 5 years ago

Merge to HEAD 21160.

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

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