source: networking/netlibs/curl.xml@ 71c31f5

systemd-13485
Last change on this file since 71c31f5 was 71c31f5, checked in by DJ Lucas <dj@…>, 8 years ago

Chapter 17 merge from trunk.

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

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