source: networking/netlibs/curl.xml@ a08727f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules 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 a08727f was a08727f, checked in by Pierre Labastie <pieere@…>, 7 years ago

Update to bind-9.11.0-P1, cURL-7.51.0, dovecot-2.2.26.0, and neon-0.30.2

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

  • Property mode set to 100644
File size: 9.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.lzma">
8 <!ENTITY curl-download-ftp " ">
9 <!ENTITY curl-md5sum "0f876ef6d5776d96b08510461d57db1b">
10 <!ENTITY curl-size "2.0 MB">
11 <!ENTITY curl-buildsize "55 MB (additional 9 MB for tests)">
12 <!ENTITY curl-time "0.4 SBU (additional 9.9 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 &lfs7a_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 linkend="cacerts"/> (runtime) and
82 <xref linkend="openssl"/> or <xref linkend="gnutls"/>
83 </para>
84
85 <bridgehead renderas="sect4">Optional</bridgehead>
86 <para role="optional">
87 <xref linkend="libidn"/>,
88 <xref linkend="mitkrb"/>,
89 <xref linkend="nghttp2"/>,
90 <xref linkend="openldap"/>,
91 <xref linkend="samba"/>,
92 <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
93 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
94 <ulink url="https://github.com/rockdaboot/libpsl">libpsl</ulink>,
95 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
96 <ulink url="http://www.libssh2.org">libssh2</ulink>,
97 <ulink url="https://tls.mbed.org/">mbed TLS (formerly known as
98 PolarSSL)</ulink>, and
99 <ulink url="http://spnego.sourceforge.net/">
100 SPNEGO</ulink>
101 </para>
102
103 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
104 <para role="optional">
105 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
106 <xref linkend="valgrind"/>
107 </para>
108
109 <para condition="html" role="usernotes">User Notes:
110 <ulink url="&blfs-wiki;/curl"/>
111 </para>
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of cURL</title>
116
117 <para>
118 Install <application>cURL</application> by running the following
119 commands:
120 </para>
121
122<screen><userinput>./configure --prefix=/usr \
123 --disable-static \
124 --enable-threaded-resolver \
125 --with-ca-bundle=/etc/ssl/ca-bundle.crt &amp;&amp;
126make</userinput></screen>
127
128<!-- <para>
129 Running the test suite is optional. About 2% of the tests fail. Increase
130 in test time by each failed test is about 10%. Tests SBU above was
131 obtained disabling failing tests, with:
132 </para>
133
134<screen><userinput>cat &gt;&gt; tests/data/DISABLED &lt;&lt; "EOF"
135<literal>564
136700
137701
138703
139706
140707
141708
142709
143710
144711
145712</literal>
146EOF</userinput></screen>
147
148I had the following fail:
149 300 301 303 304 306 309 310 311 312 325
150 400 401 403 406 407 408 409 560 1112 2034
1512035 2037 2038 2041 2042
152
153 - Bruce 20151016
154
155Tests may be using capabilites removed from recent ssh due to
156security issues.
157
158
159 <para>
160 and running <command>make test</command>.
161 </para>-->
162
163 <para>
164 To run the test suite, issue: <command>make test</command>. <!-- Two tests,
165 1139 and 1140, may fail. Works fine for me. Douglas 20160720 --><!-- Some
166 tests (up to 2%) may fail due to timing issues, kernel configuration,
167 or other issues.-->
168 </para>
169
170 <para>
171 Now, as the <systemitem class="username">root</systemitem>
172 user:
173 </para>
174
175<screen role="root"><userinput>make install &amp;&amp;
176install -vm755 lib/mk-ca-bundle.pl /usr/bin &amp;&amp;
177
178rm -rf docs/examples/.deps &amp;&amp;
179
180find docs \( -name Makefile\* \
181 -o -name \*.1 \
182 -o -name \*.3 \) \
183 -exec rm {} \; &amp;&amp;
184install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
185cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
186
187 <para>
188 Simple tests to the new installed <command>curl</command>:
189 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
190 and
191 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
192 Inspect the locally created trace files <filename>debugdump.txt</filename>
193 and <filename>d.txt</filename>, which contain version downloaded
194 files information, etc. One file has the time for each action logged.
195 </para>
196 </sect2>
197
198 <sect2 role="commands">
199 <title>Command Explanations</title>
200
201 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
202 href="../../xincludes/static-libraries.xml"/>
203
204 <para>
205 <parameter>--enable-threaded-resolver</parameter>: This switch enables
206 <application>cURL</application>'s builtin threaded DNS resolver.
207 </para>
208
209 <para>
210 <parameter>--with-ca-bundle=/etc/ssl/ca-bundle.crt</parameter>: This
211 switch sets the location of the BLFS <xref linkend="cacerts"/> bundle.
212 </para>
213
214 <para>
215 <option>--with-gssapi</option>: This parameter adds
216 <application>Kerberos 5</application> support to
217 <filename class="libraryfile">libcurl</filename>.
218 </para>
219
220 <para>
221 <option>--without-ssl --with-gnutls</option>: Use to
222 build with <application>GnuTLS</application> support
223 instead of <application>OpenSSL</application> for SSL/TLS.
224 </para>
225
226 <para>
227 <command>find docs ... -exec rm {} \;</command>: This command removes
228 <filename>Makefiles</filename> and man files from the documentation
229 directory that would otherwise be installed by the commands that follow.
230 </para>
231
232 </sect2>
233
234 <sect2 role="content">
235 <title>Contents</title>
236
237 <segmentedlist>
238 <segtitle>Installed Programs</segtitle>
239 <segtitle>Installed Library</segtitle>
240 <segtitle>Installed Directories</segtitle>
241
242 <seglistitem>
243 <seg>
244 curl, curl-config, and mk-ca-bundle.pl
245 </seg>
246 <seg>
247 libcurl.so
248 </seg>
249 <seg>
250 /usr/include/curl and
251 /usr/share/doc/curl-&curl-version;
252 </seg>
253 </seglistitem>
254 </segmentedlist>
255
256 <variablelist>
257 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
258 <?dbfo list-presentation="list"?>
259 <?dbhtml list-presentation="table"?>
260
261 <varlistentry id="curl-prog">
262 <term><command>curl</command></term>
263 <listitem>
264 <para>
265 is a command line tool for transferring files with URL syntax.
266 </para>
267 <indexterm zone="curl curl-prog">
268 <primary sortas="b-curl">curl</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="curl-config">
274 <term><command>curl-config</command></term>
275 <listitem>
276 <para>
277 prints information about the last compile, like libraries
278 linked to and prefix setting.
279 </para>
280 <indexterm zone="curl curl-config">
281 <primary sortas="b-curl-config">curl-config</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="mk-ca-bundle-pl">
287 <term><command>mk-ca-bundle.pl</command></term>
288 <listitem>
289 <para>
290 downloads a copy of certdata.txt from the Mozilla version control
291 system, and reformats it for use by
292 <application>gnutls</application>.
293 </para>
294 <indexterm zone="curl mk-ca-bundle-pl">
295 <primary sortas="b-mk-ca-bundle-pl">mk-ca-bundle.pl</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="libcurl">
301 <term><filename class="libraryfile">libcurl.so</filename></term>
302 <listitem>
303 <para>
304 provides the API functions required by
305 <command>curl</command> and other programs.
306 </para>
307 <indexterm zone="curl libcurl">
308 <primary sortas="c-libcurl">libcurl.so</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 </variablelist>
314
315 </sect2>
316
317</sect1>
Note: See TracBrowser for help on using the repository browser.