source: networking/netlibs/curl.xml@ 9a7aeed0

11.1 11.2 11.3 12.0 12.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 9a7aeed0 was 9a7aeed0, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Remove an unneeded command from teh curl build instructions.

  • Property mode set to 100644
File size: 16.6 KB
RevLine 
[bf8ac01]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[a2d8572]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[8e2075c]6
[c24aa343]7 <!ENTITY curl-download-http "https://curl.se/download/curl-&curl-version;.tar.xz">
[2b8421c]8 <!ENTITY curl-download-ftp " ">
[284be226]9 <!ENTITY curl-md5sum "24408ce0068de0ae7871039451ad6f97">
[683cfcab]10 <!ENTITY curl-size "2.4 MB">
[284be226]11 <!ENTITY curl-buildsize "96 MB (add 20 MB for tests)">
12 <!ENTITY curl-time "0.3 SBU (add 18 SBU for tests)">
[a2d8572]13]>
14
[377584f]15<sect1 id="curl" xreflabel="cURL-&curl-version;">
[bf8ac01]16 <?dbhtml filename="curl.html"?>
[dc775a26]17
[bf8ac01]18 <sect1info>
[55329727]19 <date>$Date$</date>
[bf8ac01]20 </sect1info>
[dc775a26]21
[3e89149]22 <title>cURL-&curl-version;</title>
[dc775a26]23
[bf8ac01]24 <indexterm zone="curl">
[3e89149]25 <primary sortas="a-cURL">cURL</primary>
[bf8ac01]26 </indexterm>
[dc775a26]27
[bf8ac01]28 <sect2 role="package">
[3e89149]29 <title>Introduction to cURL</title>
[dc775a26]30
[355495ce]31 <para>
[587dc526]32 The <application>cURL</application> package contains an utility
[ea21196]33 and a library used for transferring files with URL syntax to any of
34 the following protocols: FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP,
35 TELNET, DICT, LDAP, LDAPS and FILE. Its ability to both download
36 and upload files can be incorporated into other programs to support
37 functions like streaming media.
[355495ce]38 </para>
[dc775a26]39
[1871cff1]40 &lfs110a_checked;
[2b8421c]41
[bf8ac01]42 <bridgehead renderas="sect3">Package Information</bridgehead>
[874fec7f]43 <itemizedlist spacing="compact">
[bf8ac01]44 <listitem>
[355495ce]45 <para>
46 Download (HTTP): <ulink url="&curl-download-http;"/>
47 </para>
[bf8ac01]48 </listitem>
49 <listitem>
[355495ce]50 <para>
51 Download (FTP): <ulink url="&curl-download-ftp;"/>
52 </para>
[bf8ac01]53 </listitem>
54 <listitem>
[355495ce]55 <para>
56 Download MD5 sum: &curl-md5sum;
57 </para>
[bf8ac01]58 </listitem>
59 <listitem>
[355495ce]60 <para>
61 Download size: &curl-size;
62 </para>
[bf8ac01]63 </listitem>
64 <listitem>
[355495ce]65 <para>
66 Estimated disk space required: &curl-buildsize;
67 </para>
[bf8ac01]68 </listitem>
69 <listitem>
[355495ce]70 <para>
71 Estimated build time: &curl-time;
72 </para>
[bf8ac01]73 </listitem>
74 </itemizedlist>
[55e4a54]75<!--
[f9cf8463]76 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
77 <itemizedlist spacing="compact">
78 <listitem>
79 <para>
80 Required patch:
81 <ulink url="&patch-root;/curl-&curl-version;-function_naming-1.patch"/>
82 </para>
83 </listitem>
84 </itemizedlist>
[55e4a54]85-->
[f9cf8463]86
[3e89149]87 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
[dc775a26]88
[355495ce]89 <bridgehead renderas="sect4">Recommended</bridgehead>
90 <para role="recommended">
[8558044]91 <xref role="runtime" linkend="make-ca"/> (runtime)
[355495ce]92 </para>
93
[bf8ac01]94 <bridgehead renderas="sect4">Optional</bridgehead>
[355495ce]95 <para role="optional">
[47d5a9e5]96 <xref linkend="brotli"/>,
[4464d405]97 <xref linkend="c-ares"/>,
[2eb903f]98 <xref linkend="gnutls"/>,
[531f138]99 <xref linkend="libidn2"/>,
[1ad3510e]100 <xref linkend="libpsl"/>,
[fee79e2]101 <xref linkend="libssh2"/>,
[355495ce]102 <xref linkend="mitkrb"/>,
[0c702b61]103 <xref linkend="nghttp2"/>,
[fad8db2]104 <xref linkend="openldap"/>,
[4949bda0]105 <xref linkend="samba"/>,
[84fe2e9]106 <ulink url="https://www.secureauth.com/labs/open-source-tools/impacket/">impacket</ulink>,
[fad8db2]107 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
[6d05912]108 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
[8558044]109 <ulink url="https://github.com/ngtcp2/ngtcp2/">ngtcp2</ulink>,
[a4b38ab]110 <!--<ulink url="https://tls.mbed.org/">mbed TLS</ulink> (formerly known as
111 PolarSSL), and -->
112 <!-- mbedTLS/PolarSSL support was removed in 7.65.1 -->
[6d05912]113 <ulink url="https://github.com/cloudflare/quiche">quiche</ulink>, and
[c18fd2e6]114 <ulink url="http://spnego.sourceforge.net/">SPNEGO</ulink>
[355495ce]115 </para>
116
[d714f22]117 <bridgehead renderas="sect4">Optional if Running the Test Suite</bridgehead>
[355495ce]118 <para role="optional">
[d714f22]119 <!-- stunnel is still listed in the docs as required, but 7.58.0
120 tests completed happily without it, although the test for unit1323
121 reported that the tool set in the test case does not exist - ken -->
[f346a49]122 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
[1ad3510e]123 <xref linkend="valgrind"/> (this will slow the tests down and may cause failures.)
[355495ce]124 </para>
[c5e7d76]125
[061ec9d]126 <para condition="html" role="usernotes">User Notes:
[355495ce]127 <ulink url="&blfs-wiki;/curl"/>
128 </para>
[bf8ac01]129 </sect2>
[dc775a26]130
[bf8ac01]131 <sect2 role="installation">
[3e89149]132 <title>Installation of cURL</title>
[ebf4942]133
[355495ce]134 <para>
135 Install <application>cURL</application> by running the following
136 commands:
137 </para>
[dc775a26]138
[58d5000]139<screen><userinput>./configure --prefix=/usr \
[30b7db74]140 --disable-static \
[42d1ab6]141 --with-openssl \
[30b7db74]142 --enable-threaded-resolver \
[038b4c75]143 --with-ca-path=/etc/ssl/certs &amp;&amp;
[bf8ac01]144make</userinput></screen>
[dc775a26]145
[8ffdb08]146<!--
[58d5000]147 For version 7.54.1 I got:
148 TESTDONE: 869 tests out of 869 reported OK: 100%
149 TESTDONE: 1092 tests were considered during 1080 seconds
[8ffdb08]150
151 <para>
[2ca3997]152 Running the test suite is optional. About 2% of the tests fail. Increase
153 in test time by each failed test is about 10%. Tests SBU above was
154 obtained disabling failing tests, with:
[355495ce]155 </para>
[bfc3945]156
157 2017-10-29 - bdubbs
158 For version 7.56.1 I had a lot of test failures which included long
159 timeouts. Could not determine the cause of the timeouts or failures,
160 but I was missing c-ares, MIT Kerberos, ldap, samba, and the six
161 external packages.
[e024fe4]162
[8558044]163 2017-12-01 - bdubbs
[e024fe4]164 Still a lot of test failures. I did have c-ares, Kerberos, and ldap
165 installed this time. Best guess is that servers are not available.
[7549592]166
167 2018-08-01 - renodr
168 No test failures, but I didn't have any of the optional dependencies except
169 for c-ares and libidn2. I might re-run this test suite before release with
170 all of the optional deps, but right now, it isn't a priority - rather
171 the security fix is.
[8ffdb08]172-->
[ffa8c7f]173
174 <para>
[8558044]175 To run the test suite, issue: <command>make test</command>.
[284be226]176 Four tests, 1139, 1140, 1173, and 1177, are known to fail due to
177 missing executables from the optional dependencies.
[6666fad]178 </para>
179<!-- Two (of 857) tests
180fail for unknown reasons, and all tests fail is valgrind is installed. Moving
181valgrind out of $PATH is recommended if you wish to run the test suite while
[8558044]182it is installed.
[6666fad]183
[c18fd2e6]184Added by Pierre for curl-7.59.0:
185no stunnel, no valgrind, no options
186Warning: smb server unexpectedly alive
187Warning: dict server unexpectedly alive
188TESTDONE: 950 tests out of 951 reported OK: 99%
[8558044]189TESTFAIL: These test cases failed: 1148
[c18fd2e6]190TESTDONE: 1189 tests were considered during 362 seconds.
191__________
192
[d714f22]193 if stunnel and valgrind are not installed, and also most options
194 (I had rtmpdump), the tests complete without problems.
195Warning: smb server unexpectedly alive
196Warning: dict server unexpectedly alive
197TESTDONE: 938 tests out of 938 reported OK: 100%
198TESTDONE: 1175 tests were considered during 355 seconds.
199 and no. I don't have smb - so commenting the rest of this:
[8558044]200 To run the test suite, issue: <command>make test</command>. Many tests
[e024fe4]201 may fail that depend on optional dependencies that may not be installed
[8558044]202 or upstream servers that may not be available, especially for tests
[e024fe4]203 numbered 700 and above.
[8558044]204 Test time may be significantly increase due to hanging tests that fail.
[85d14e15]205__________
206Added by Bruce for curl-7.60.0:
207TESTDONE: 957 tests out of 959 reported OK: 99%
[8558044]208TESTFAIL: These test cases failed: 1139 1140
[85d14e15]209TESTDONE: 1196 tests were considered during 1184 seconds.
210From the logs, both appear to be ipv6 releated.
[7549592]211
212==========
213Added by Douglas for curl-7.61.0:
214TESTDONE: 961 tests out of 961 reported OK: 100%
215TESTDONE: 1202 tests were considered during 338 seconds.
216I only have c-ares and libidn2 installed, I will likely try before release
217with all optional dependencies in the book installed.
[5a66d6ac]218
219=========
2207.61.1 NOTE: The test suite is extremely noisy, complaining about verification errors.
221It's possible this is due to openssl-1.1.1, BUT 79/79 tests report as 100% OK. I had
222c-ares, libpsl, and libidn1/2 installed. - Doug
[7a05ab42]223
224========
2257.62.0: All tests passed. libpsl, c-ares, libssh2, libidn2 installed.
226All 1098 tests report OK.
[7f6d672]227
228=======
229Added by Douglas for curl-7.64.0:
230TESTDONE: 1022 tests out of 1023 reported OK: 99%
231TESTFAIL: These tests cases failed: 323
232TESTDONE: 1235 tests were considered during 1279 seconds.
233For dependencies, I had c-ares, gnutls, libidn2, libpsl, krb5, libssh2, nghttp2,
234OpenLDAP, Samba, stunnel, and Valgrind installed.
[731bf37a]235=======
236Added by bdubbs for curl-7.64.1:
237TESTDONE: 1022 tests out of 1025 reported OK: 99%
238TESTFAIL: These test cases failed: 323 1139 1140
239TESTDONE: 1242 tests were considered during 1483 seconds
[a4b38ab]240
241=======
242Added by renodr for curl-7.65.1:
243TESTDONE: 996 tests out of 997 reported OK: 99%
244TESTFAIL: These test cases failed: 1560
245TESTDONE: 1249 tests were considered during 1091 seconds.
[03790ef]246All dependencies except for externals installed.
247=======
248Added by bdubbs for curl-7.65.2:
249TESTDONE: 1034 tests out of 1036 reported OK: 99%
250TESTFAIL: These test cases failed: 323 1560
251TESTDONE: 1254 tests were considered during 1362 seconds.
252Time above does not include test build time.
[a4b38ab]253All dependencies except for externals installed.
[6666fad]254=======
255Added by bdubbs for curl-7.65.3:
256TESTDONE: 1031 tests out of 1036 reported OK: 99%
257TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
258TESTDONE: 1254 tests were considered during 1364 seconds.
259
[8558044]260The tests that fail seem to be somewhat random. What happened between
[6666fad]261yesterday and today that that tests 1139 1140 1173 now fail?
262
[4f09d49]263=======
264Added by bdubbs for curl-7.68.0:
265TESTDONE: 1066 tests out of 1071 reported OK: 99%
266TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
267TESTDONE: 1290 tests were considered during 1515 seconds.
268
[b115946]269=======
270Added by bdubbs for curl-7.69.0:
271TESTDONE: 074 tests out of 1079 reported OK: 99%
272TESTFAIL: These test cases failed: 323 1139 1140 1173 1560
273TESTDONE: 1320 tests were considered during 1514 seconds.
274
[83f8954]275For curl-7.69.1, 1082 tests out of 1086 reported OK. 1560 now passes.
2761330 tests were considered during 1528 seconds.
277
[84fe2e9]278======
279Added by renodr for curl-7.70.0:
280TESTDONE: 1062 tests out of 1062 reported OK: 100%
281TESTDONE: 1352 tests were considered during 1218 seconds.
282Tests were ran with all dependencies present except for stunnel.
283impacket only seems to add one extra test to the mix as well.
[6d05912]284
285======
286Added by renodr for curl-7.71.0:
287TESTDONE: 1072 tests out of 1072 reported OK: 100%
288TESTDONE: 1364 tests were considered during 1202 seconds.
289Tests were run similarly to 7.70.0 - all deps except for stunnel.
[e3a68e4]290
291======
292Added by renodr for curl-7.71.1:
293TESTDONE: 1076 tests out of 1076 reported OK: 100%
294TESTDONE: 1368 tests were considered during 1207 seconds.
295Tests were run similarly to 7.71.0, including impacket, but no stunnel.
[365c6fb]296
297======
298Added by renodr for curl-7.72.0:
299TESTDONE: 1094 tests out of 1097 reported OK: 99%
[8558044]300TESTFAIL: These test cases failed: 1700 1701 1702
[365c6fb]301TESTDONE: 1374 tests were considered during 1285 seconds.
302Tests have all BLFS dependencies with the exception of stunnel;
303and the optional impacket python module was installed.
304Tests seem to be failing due to a missing 'nghttpx' executable
305used to start a test server.
[14726fe]306
307======
308Added by renodr for curl-7.73.0:
309TESTDONE: 1121 tests out of 1121 reported OK: 100%
310TESTDONE: 1387 tests were considered during 1303 seconds.
311Tests have all BLFS dependencies installed with the exception of stunnel,
312as well as the optional impacket installed.
[21d18f7e]313
314======
315Added by renodr for curl-7.74.0:
316TESTDONE: 1119 tests out of 1119 reported OK: 100%
317TESTDONE: 1388 tests were considered during 1370 seconds.
318Tests have all BLFS dependencies installed, as well as impacket.
319stunnel not installed.
[284be226]320
321======
322Added by bdubbs for curl-7.79.0:
323TESTDONE: 1432 tests were considered during 1543 seconds.
324TESTDONE: 1208 tests out of 1212 reported OK: 99%
325
326Tests have all BLFS dependencies installed but without impacket.
[85d14e15]327-->
[f346a49]328
[355495ce]329 <para>
330 Now, as the <systemitem class="username">root</systemitem>
331 user:
332 </para>
[dc775a26]333
[874fec7f]334<screen role="root"><userinput>make install &amp;&amp;
[5ee1266]335
[b5969599]336rm -rf docs/examples/.deps &amp;&amp;
337
[e024fe4]338find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; &amp;&amp;
339
[e4ca0af7]340install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
[d832a872]341cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
[0c02dcb]342
343 <para>
344 Simple tests to the new installed <command>curl</command>:
345 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
346 and
347 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
348 Inspect the locally created trace files <filename>debugdump.txt</filename>
349 and <filename>d.txt</filename>, which contain version downloaded
350 files information, etc. One file has the time for each action logged.
351 </para>
[bf8ac01]352 </sect2>
[dc775a26]353
[bf8ac01]354 <sect2 role="commands">
355 <title>Command Explanations</title>
[dc775a26]356
[c627795]357 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
358 href="../../xincludes/static-libraries.xml"/>
[5ee1266]359
[fdd7a91]360 <para>
361 <parameter>--enable-threaded-resolver</parameter>: This switch enables
362 <application>cURL</application>'s builtin threaded DNS resolver.
363 </para>
364
[30b7db74]365 <para>
[038b4c75]366 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
[2198a32]367 switch sets the location of the BLFS Certificate Authority store.
[30b7db74]368 </para>
369
[42d1ab6]370 <para>
[a62f518]371 <parameter>--with-openssl</parameter>: This parameter chooses
[3026cde]372 <application>OpenSSL</application> as SSL/TLS implementation.
373 This seems mandatory now.
[42d1ab6]374 </para>
375
[355495ce]376 <para>
377 <option>--with-gssapi</option>: This parameter adds
378 <application>Kerberos 5</application> support to
379 <filename class="libraryfile">libcurl</filename>.
380 </para>
381
382 <para>
383 <option>--without-ssl --with-gnutls</option>: Use to
384 build with <application>GnuTLS</application> support
385 instead of <application>OpenSSL</application> for SSL/TLS.
386 </para>
[b834dfc7]387
[038b4c75]388 <para>
[5c3f3856]389 <option>--with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt</option>: Use
[038b4c75]390 this switch instead of <parameter>--with-ca-path</parameter> if
391 building with <application>GnuTLS</application> support
392 instead of <application>OpenSSL</application> for SSL/TLS.
393 </para>
394
[7f6d672]395 <para>
[a62f518]396 <option>--with-libssh2</option>: This parameter adds
[7f6d672]397 <application>SSH</application> support to cURL. This is disabled
398 by default.
399 </para>
400
[a4b38ab]401 <para>
[a62f518]402 <option>--enable-ares</option>: This parameter adds
[a4b38ab]403 support for DNS resolution through the c-ares library. It is disabled
404 by default, but does speed up DNS resolution queries.
405 </para>
406
[355495ce]407 <para>
[5ee1266]408 <command>find docs ... -exec rm {} \;</command>: This command removes
[355495ce]409 <filename>Makefiles</filename> and man files from the documentation
[4949bda0]410 directory that would otherwise be installed by the commands that follow.
[355495ce]411 </para>
[32a8ca3]412
[bf8ac01]413 </sect2>
[dc775a26]414
[bf8ac01]415 <sect2 role="content">
416 <title>Contents</title>
[dc775a26]417
[bf8ac01]418 <segmentedlist>
419 <segtitle>Installed Programs</segtitle>
420 <segtitle>Installed Library</segtitle>
421 <segtitle>Installed Directories</segtitle>
[dc775a26]422
[bf8ac01]423 <seglistitem>
[355495ce]424 <seg>
[c18fd2e6]425 curl and curl-config
[355495ce]426 </seg>
427 <seg>
428 libcurl.so
429 </seg>
430 <seg>
431 /usr/include/curl and
432 /usr/share/doc/curl-&curl-version;
433 </seg>
[bf8ac01]434 </seglistitem>
435 </segmentedlist>
[dc775a26]436
[bf8ac01]437 <variablelist>
438 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
439 <?dbfo list-presentation="list"?>
440 <?dbhtml list-presentation="table"?>
[dc775a26]441
[bf8ac01]442 <varlistentry id="curl-prog">
443 <term><command>curl</command></term>
444 <listitem>
[355495ce]445 <para>
[4c24eb0a]446 is a command line tool for transferring files with URL syntax
[32a8ca3]447 </para>
[bf8ac01]448 <indexterm zone="curl curl-prog">
449 <primary sortas="b-curl">curl</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
[dc775a26]453
[bf8ac01]454 <varlistentry id="curl-config">
455 <term><command>curl-config</command></term>
456 <listitem>
[355495ce]457 <para>
458 prints information about the last compile, like libraries
[4c24eb0a]459 linked to and prefix setting
[355495ce]460 </para>
[bf8ac01]461 <indexterm zone="curl curl-config">
462 <primary sortas="b-curl-config">curl-config</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
[dc775a26]466
[bf8ac01]467 <varlistentry id="libcurl">
[874fec7f]468 <term><filename class="libraryfile">libcurl.so</filename></term>
[bf8ac01]469 <listitem>
[355495ce]470 <para>
471 provides the API functions required by
[4c24eb0a]472 <command>curl</command> and other programs
[355495ce]473 </para>
[bf8ac01]474 <indexterm zone="curl libcurl">
[874fec7f]475 <primary sortas="c-libcurl">libcurl.so</primary>
[bf8ac01]476 </indexterm>
477 </listitem>
478 </varlistentry>
[355495ce]479
[bf8ac01]480 </variablelist>
[355495ce]481
[bf8ac01]482 </sect2>
[355495ce]483
[f45b1953]484</sect1>
Note: See TracBrowser for help on using the repository browser.