source: networking/netlibs/curl.xml@ 7bfcd17

systemd-13485
Last change on this file since 7bfcd17 was 7bfcd17, checked in by Pierre Labastie <pieere@…>, 8 years ago

Remove useless commands in curl installation

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

  • Property mode set to 100644
File size: 8.7 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
[cecac4d]7 <!ENTITY curl-download-http "https://curl.haxx.se/download/curl-&curl-version;.tar.lzma">
[2b8421c]8 <!ENTITY curl-download-ftp " ">
[54aaa89]9 <!ENTITY curl-md5sum "de75665721e3adb0a1d7e03b90c3d7a2">
[6cbd464]10 <!ENTITY curl-size "5.7 MB">
11 <!ENTITY curl-buildsize "57 MB (additional 9 MB for tests)">
12 <!ENTITY curl-time "0.4 SBU (additional 9.6 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>
19 <othername>$LastChangedBy$</othername>
[55329727]20 <date>$Date$</date>
[bf8ac01]21 </sect1info>
[dc775a26]22
[3e89149]23 <title>cURL-&curl-version;</title>
[dc775a26]24
[bf8ac01]25 <indexterm zone="curl">
[3e89149]26 <primary sortas="a-cURL">cURL</primary>
[bf8ac01]27 </indexterm>
[dc775a26]28
[bf8ac01]29 <sect2 role="package">
[3e89149]30 <title>Introduction to cURL</title>
[dc775a26]31
[355495ce]32 <para>
[17d8bc7]33 The <application>cURL</application> package contains an utility
[ea21196]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.
[355495ce]39 </para>
[dc775a26]40
[98c91f4c]41 &lfs79_checked;&gcc6_checked;
[6d11bc30]42
[bf8ac01]43 <bridgehead renderas="sect3">Package Information</bridgehead>
[874fec7f]44 <itemizedlist spacing="compact">
[bf8ac01]45 <listitem>
[355495ce]46 <para>
47 Download (HTTP): <ulink url="&curl-download-http;"/>
48 </para>
[bf8ac01]49 </listitem>
50 <listitem>
[355495ce]51 <para>
52 Download (FTP): <ulink url="&curl-download-ftp;"/>
53 </para>
[bf8ac01]54 </listitem>
55 <listitem>
[355495ce]56 <para>
57 Download MD5 sum: &curl-md5sum;
58 </para>
[bf8ac01]59 </listitem>
60 <listitem>
[355495ce]61 <para>
62 Download size: &curl-size;
63 </para>
[bf8ac01]64 </listitem>
65 <listitem>
[355495ce]66 <para>
67 Estimated disk space required: &curl-buildsize;
68 </para>
[bf8ac01]69 </listitem>
70 <listitem>
[355495ce]71 <para>
72 Estimated build time: &curl-time;
73 </para>
[bf8ac01]74 </listitem>
75 </itemizedlist>
[dc775a26]76
[3e89149]77 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
[dc775a26]78
[355495ce]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
[bf8ac01]85 <bridgehead renderas="sect4">Optional</bridgehead>
[355495ce]86 <para role="optional">
87 <xref linkend="libidn"/>,
88 <xref linkend="mitkrb"/>,
[fad8db2]89 <xref linkend="openldap"/>,
[ac38e9dc]90 <xref linkend="samba"/>,
[fad8db2]91 <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
92 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
[6cbd464]93 <ulink url="https://github.com/rockdaboot/libpsl">libpsl</ulink>,
94 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
[71c31f5]95 <ulink url="http://www.libssh2.org">libssh2</ulink>,
96 <ulink url="https://nghttp2.org/">nghttp2</ulink>,
97 <ulink url="https://tls.mbed.org/">mbed TLS (formerly known as
98 PolarSSL)</ulink>, and
[fcf1fd62]99 <ulink url="http://spnego.sourceforge.net/">
[355495ce]100 SPNEGO</ulink>
101 </para>
102
103 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
104 <para role="optional">
[f346a49]105 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
106 <xref linkend="valgrind"/>
[355495ce]107 </para>
[c5e7d76]108
[061ec9d]109 <para condition="html" role="usernotes">User Notes:
[355495ce]110 <ulink url="&blfs-wiki;/curl"/>
111 </para>
[bf8ac01]112 </sect2>
[dc775a26]113
[bf8ac01]114 <sect2 role="installation">
[3e89149]115 <title>Installation of cURL</title>
[dc775a26]116
[355495ce]117 <para>
118 Install <application>cURL</application> by running the following
119 commands:
120 </para>
[dc775a26]121
[f25b43cb]122<screen><userinput>./configure --prefix=/usr \
[fdd7a91]123 --disable-static \
[b9e1a58]124 --enable-threaded-resolver &amp;&amp;
[bf8ac01]125make</userinput></screen>
[dc775a26]126
[ac38e9dc]127<!-- <para>
[fcf1fd62]128 Running the test suite is optional. About 2% of the tests fail. Increase
129 in test time by each failed test is about 10%. Tests SBU above was
130 obtained disabling failing tests, with:
[355495ce]131 </para>
[dc775a26]132
[f346a49]133<screen><userinput>cat &gt;&gt; tests/data/DISABLED &lt;&lt; "EOF"
[fcf1fd62]134<literal>564
135700
136701
137703
138706
139707
140708
141709
142710
143711
[ac38e9dc]144712</literal>
[fcf1fd62]145EOF</userinput></screen>
146
[71c31f5]147I had the following fail:
148 300 301 303 304 306 309 310 311 312 325
149 400 401 403 406 407 408 409 560 1112 2034
1502035 2037 2038 2041 2042
151
152 - Bruce 20151016
153
154Tests may be using capabilites removed from recent ssh due to
155security issues.
156
157
[fcf1fd62]158 <para>
159 and running <command>make test</command>.
[71c31f5]160 </para>-->
[ac38e9dc]161
162 <para>
[6cbd464]163 To run the test suite, issue: <command>make test</command>. Two tests,
164 1139 and 1140, may fail.<!-- Some
[71c31f5]165 tests (up to 2%) may fail due to timing issues, kernel configuration,
166 or other issues.-->
[fcf1fd62]167 </para>
[f346a49]168
[355495ce]169 <para>
170 Now, as the <systemitem class="username">root</systemitem>
171 user:
172 </para>
[dc775a26]173
[874fec7f]174<screen role="root"><userinput>make install &amp;&amp;
[71c31f5]175
[cecac4d]176rm -rf docs/examples/.deps &amp;&amp;
177
[71c31f5]178find docs \( -name Makefile\* \
179 -o -name \*.1 \
180 -o -name \*.3 \) \
181 -exec rm {} \; &amp;&amp;
182install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
[7bfcd17]183cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
[71c31f5]184
185 <para>
186 Simple tests to the new installed <command>curl</command>:
187 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
188 and
189 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
190 Inspect the locally created trace files <filename>debugdump.txt</filename>
191 and <filename>d.txt</filename>, which contain version downloaded
192 files information, etc. One file has the time for each action logged.
193 </para>
[bf8ac01]194 </sect2>
[dc775a26]195
[bf8ac01]196 <sect2 role="commands">
197 <title>Command Explanations</title>
[dc775a26]198
[c627795]199 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
200 href="../../xincludes/static-libraries.xml"/>
[71c31f5]201
[fdd7a91]202 <para>
203 <parameter>--enable-threaded-resolver</parameter>: This switch enables
204 <application>cURL</application>'s builtin threaded DNS resolver.
205 </para>
206
[355495ce]207 <para>
208 <option>--with-gssapi</option>: This parameter adds
209 <application>Kerberos 5</application> support to
210 <filename class="libraryfile">libcurl</filename>.
211 </para>
212
213 <para>
214 <option>--without-ssl --with-gnutls</option>: Use to
215 build with <application>GnuTLS</application> support
216 instead of <application>OpenSSL</application> for SSL/TLS.
217 </para>
[b834dfc7]218
[355495ce]219 <para>
[71c31f5]220 <command>find docs ... -exec rm {} \;</command>: This command removes
[355495ce]221 <filename>Makefiles</filename> and man files from the documentation
[ac38e9dc]222 directory that would otherwise be installed by the commands that follow.
[355495ce]223 </para>
[32a8ca3]224
[bf8ac01]225 </sect2>
[dc775a26]226
[bf8ac01]227 <sect2 role="content">
228 <title>Contents</title>
[dc775a26]229
[bf8ac01]230 <segmentedlist>
231 <segtitle>Installed Programs</segtitle>
232 <segtitle>Installed Library</segtitle>
233 <segtitle>Installed Directories</segtitle>
[dc775a26]234
[bf8ac01]235 <seglistitem>
[355495ce]236 <seg>
237 curl and curl-config
238 </seg>
239 <seg>
240 libcurl.so
241 </seg>
242 <seg>
243 /usr/include/curl and
244 /usr/share/doc/curl-&curl-version;
245 </seg>
[bf8ac01]246 </seglistitem>
247 </segmentedlist>
[dc775a26]248
[bf8ac01]249 <variablelist>
250 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
251 <?dbfo list-presentation="list"?>
252 <?dbhtml list-presentation="table"?>
[dc775a26]253
[bf8ac01]254 <varlistentry id="curl-prog">
255 <term><command>curl</command></term>
256 <listitem>
[355495ce]257 <para>
258 is a command line tool for transferring files with URL syntax.
[32a8ca3]259 </para>
[bf8ac01]260 <indexterm zone="curl curl-prog">
261 <primary sortas="b-curl">curl</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
[dc775a26]265
[bf8ac01]266 <varlistentry id="curl-config">
267 <term><command>curl-config</command></term>
268 <listitem>
[355495ce]269 <para>
270 prints information about the last compile, like libraries
271 linked to and prefix setting.
272 </para>
[bf8ac01]273 <indexterm zone="curl curl-config">
274 <primary sortas="b-curl-config">curl-config</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
[dc775a26]278
[bf8ac01]279 <varlistentry id="libcurl">
[874fec7f]280 <term><filename class="libraryfile">libcurl.so</filename></term>
[bf8ac01]281 <listitem>
[355495ce]282 <para>
283 provides the API functions required by
284 <command>curl</command> and other programs.
285 </para>
[bf8ac01]286 <indexterm zone="curl libcurl">
[874fec7f]287 <primary sortas="c-libcurl">libcurl.so</primary>
[bf8ac01]288 </indexterm>
289 </listitem>
290 </varlistentry>
[355495ce]291
[bf8ac01]292 </variablelist>
[355495ce]293
[bf8ac01]294 </sect2>
[355495ce]295
[f45b1953]296</sect1>
Note: See TracBrowser for help on using the repository browser.