source: networking/netlibs/curl.xml@ fcf1fd62

systemd-13485
Last change on this file since fcf1fd62 was fcf1fd62, checked in by Christopher Gregory <cjg@…>, 9 years ago

Merge more updates from trunk.

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

  • Property mode set to 100644
File size: 7.4 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 "e9aa6dec29920eba8ef706ea5823bad7">
10 <!ENTITY curl-size "2.6 MB">
11 <!ENTITY curl-buildsize "41 MB (additional 7 MB for tests)">
12 <!ENTITY curl-time "0.4 SBU (additional 10 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 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 &lfs76_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 <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
91 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
92 <ulink url="http://www.libssh2.org">libssh2</ulink>, and
93 <ulink url="http://spnego.sourceforge.net/">
94 SPNEGO</ulink>
95 </para>
96
97 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
98 <para role="optional">
99 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
100 <xref linkend="valgrind"/>
101 </para>
102
103 <para condition="html" role="usernotes">User Notes:
104 <ulink url="&blfs-wiki;/curl"/>
105 </para>
106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of cURL</title>
110
111 <para>
112 Install <application>cURL</application> by running the following
113 commands:
114 </para>
115
116<screen><userinput>./configure --prefix=/usr \
117 --disable-static \
118 --enable-threaded-resolver &amp;&amp;
119make</userinput></screen>
120
121 <para>
122 Running the test suite is optional. About 2% of the tests fail. Increase
123 in test time by each failed test is about 10%. Tests SBU above was
124 obtained disabling failing tests, with:
125 </para>
126
127<screen><userinput>cat &gt;&gt; tests/data/DISABLED &lt;&lt; "EOF"
128<literal>564
129700
130701
131703
132706
133707
134708
135709
136710
137711
138712
1392034</literal>
140EOF</userinput></screen>
141
142 <para>
143 and running <command>make test</command>.
144 </para>
145
146 <para>
147 Now, as the <systemitem class="username">root</systemitem>
148 user:
149 </para>
150
151<screen role="root"><userinput>make install &amp;&amp;
152find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &amp;&amp;
153install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
154cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
155 </sect2>
156
157 <sect2 role="commands">
158 <title>Command Explanations</title>
159
160 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
161 href="../../xincludes/static-libraries.xml"/>
162
163 <para>
164 <parameter>--enable-threaded-resolver</parameter>: This switch enables
165 <application>cURL</application>'s builtin threaded DNS resolver.
166 </para>
167
168 <para>
169 <option>--with-gssapi</option>: This parameter adds
170 <application>Kerberos 5</application> support to
171 <filename class="libraryfile">libcurl</filename>.
172 </para>
173
174 <para>
175 <option>--without-ssl --with-gnutls</option>: Use to
176 build with <application>GnuTLS</application> support
177 instead of <application>OpenSSL</application> for SSL/TLS.
178 </para>
179
180 <para>
181 <command>find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3"
182 \) -exec rm {} \;</command>: This command removes
183 <filename>Makefiles</filename> and man files from the documentation
184 directory that would otherwise be installed by the commands that
185 follow.
186 </para>
187
188 </sect2>
189
190 <sect2 role="content">
191 <title>Contents</title>
192
193 <segmentedlist>
194 <segtitle>Installed Programs</segtitle>
195 <segtitle>Installed Library</segtitle>
196 <segtitle>Installed Directories</segtitle>
197
198 <seglistitem>
199 <seg>
200 curl and curl-config
201 </seg>
202 <seg>
203 libcurl.so
204 </seg>
205 <seg>
206 /usr/include/curl and
207 /usr/share/doc/curl-&curl-version;
208 </seg>
209 </seglistitem>
210 </segmentedlist>
211
212 <variablelist>
213 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
214 <?dbfo list-presentation="list"?>
215 <?dbhtml list-presentation="table"?>
216
217 <varlistentry id="curl-prog">
218 <term><command>curl</command></term>
219 <listitem>
220 <para>
221 is a command line tool for transferring files with URL syntax.
222 </para>
223 <indexterm zone="curl curl-prog">
224 <primary sortas="b-curl">curl</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 <varlistentry id="curl-config">
230 <term><command>curl-config</command></term>
231 <listitem>
232 <para>
233 prints information about the last compile, like libraries
234 linked to and prefix setting.
235 </para>
236 <indexterm zone="curl curl-config">
237 <primary sortas="b-curl-config">curl-config</primary>
238 </indexterm>
239 </listitem>
240 </varlistentry>
241
242 <varlistentry id="libcurl">
243 <term><filename class="libraryfile">libcurl.so</filename></term>
244 <listitem>
245 <para>
246 provides the API functions required by
247 <command>curl</command> and other programs.
248 </para>
249 <indexterm zone="curl libcurl">
250 <primary sortas="c-libcurl">libcurl.so</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 </variablelist>
256
257 </sect2>
258
259</sect1>
Note: See TracBrowser for help on using the repository browser.