source: networking/netlibs/curl.xml@ edccd1f8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 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 edccd1f8 was 551baf16, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • Update to zsh-5.2 and zsh-5.2-doc.
  • Update to libassuan-2.4.2.
  • Update to cmake-3.4.1.
  • Update to curl-7.46.0.
  • Update to cups-2.1.2.

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

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