source: networking/netlibs/curl.xml@ 2d8ad23

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 basic 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 2d8ad23 was 2d8ad23, checked in by Bruce Dubbs <bdubbs@…>, 6 years ago

Update to mercurial-4.7.1.
Update to curl-7.61.1.
Update to libdrm-2.4.94.
Update to poppler-0.68.0.

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

  • Property mode set to 100644
File size: 11.3 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 "feb1856fcdb79ba0386c8e41b02e487d">
10 <!ENTITY curl-size "2.3 MB">
11 <!ENTITY curl-buildsize "69 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 tests 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 </para>
200
201 <para>
202 Now, as the <systemitem class="username">root</systemitem>
203 user:
204 </para>
205
206<screen role="root"><userinput>make install &amp;&amp;
207
208rm -rf docs/examples/.deps &amp;&amp;
209
210find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
211
212install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
213cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
214
215 <para>
216 Simple tests to the new installed <command>curl</command>:
217 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
218 and
219 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
220 Inspect the locally created trace files <filename>debugdump.txt</filename>
221 and <filename>d.txt</filename>, which contain version downloaded
222 files information, etc. One file has the time for each action logged.
223 </para>
224 </sect2>
225
226 <sect2 role="commands">
227 <title>Command Explanations</title>
228
229 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
230 href="../../xincludes/static-libraries.xml"/>
231
232 <para>
233 <parameter>--enable-threaded-resolver</parameter>: This switch enables
234 <application>cURL</application>'s builtin threaded DNS resolver.
235 </para>
236
237 <para>
238 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
239 switch sets the location of the BLFS Certificate Authority store.
240 </para>
241
242 <para>
243 <option>--with-gssapi</option>: This parameter adds
244 <application>Kerberos 5</application> support to
245 <filename class="libraryfile">libcurl</filename>.
246 </para>
247
248 <para>
249 <option>--without-ssl --with-gnutls</option>: Use to
250 build with <application>GnuTLS</application> support
251 instead of <application>OpenSSL</application> for SSL/TLS.
252 </para>
253
254 <para>
255 <option>--with-ca-bundle=/etc/ssl/ca-bundle.crt</option>: Use
256 this switch instead of <parameter>--with-ca-path</parameter> if
257 building with <application>GnuTLS</application> support
258 instead of <application>OpenSSL</application> for SSL/TLS.
259 </para>
260
261 <para>
262 <command>find docs ... -exec rm {} \;</command>: This command removes
263 <filename>Makefiles</filename> and man files from the documentation
264 directory that would otherwise be installed by the commands that follow.
265 </para>
266
267 </sect2>
268
269 <sect2 role="content">
270 <title>Contents</title>
271
272 <segmentedlist>
273 <segtitle>Installed Programs</segtitle>
274 <segtitle>Installed Library</segtitle>
275 <segtitle>Installed Directories</segtitle>
276
277 <seglistitem>
278 <seg>
279 curl and curl-config
280 </seg>
281 <seg>
282 libcurl.so
283 </seg>
284 <seg>
285 /usr/include/curl and
286 /usr/share/doc/curl-&curl-version;
287 </seg>
288 </seglistitem>
289 </segmentedlist>
290
291 <variablelist>
292 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
293 <?dbfo list-presentation="list"?>
294 <?dbhtml list-presentation="table"?>
295
296 <varlistentry id="curl-prog">
297 <term><command>curl</command></term>
298 <listitem>
299 <para>
300 is a command line tool for transferring files with URL syntax.
301 </para>
302 <indexterm zone="curl curl-prog">
303 <primary sortas="b-curl">curl</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="curl-config">
309 <term><command>curl-config</command></term>
310 <listitem>
311 <para>
312 prints information about the last compile, like libraries
313 linked to and prefix setting.
314 </para>
315 <indexterm zone="curl curl-config">
316 <primary sortas="b-curl-config">curl-config</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="libcurl">
322 <term><filename class="libraryfile">libcurl.so</filename></term>
323 <listitem>
324 <para>
325 provides the API functions required by
326 <command>curl</command> and other programs.
327 </para>
328 <indexterm zone="curl libcurl">
329 <primary sortas="c-libcurl">libcurl.so</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 </variablelist>
335
336 </sect2>
337
338</sect1>
Note: See TracBrowser for help on using the repository browser.