source: networking/netlibs/curl.xml@ 18a65bc5

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 18a65bc5 was 551baf16, checked in by Fernando de Oliveira <fernando@…>, 9 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
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
[248a536]7 <!ENTITY curl-download-http "http://curl.haxx.se/download/curl-&curl-version;.tar.lzma">
[2b8421c]8 <!ENTITY curl-download-ftp " ">
[551baf16]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)">
[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>
[4fcead9]33 The <application>cURL</application> package contains a 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
[7ec42f5]41 &lfs78_checked;
[2b8421c]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"/>,
[4949bda0]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>,
[551baf16]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
[2ca3997]97 <ulink url="http://spnego.sourceforge.net/">
[355495ce]98 SPNEGO</ulink>
99 </para>
100
101 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
102 <para role="optional">
[f346a49]103 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
104 <xref linkend="valgrind"/>
[355495ce]105 </para>
[c5e7d76]106
[061ec9d]107 <para condition="html" role="usernotes">User Notes:
[355495ce]108 <ulink url="&blfs-wiki;/curl"/>
109 </para>
[bf8ac01]110 </sect2>
[dc775a26]111
[bf8ac01]112 <sect2 role="installation">
[3e89149]113 <title>Installation of cURL</title>
[dc775a26]114
[355495ce]115 <para>
116 Install <application>cURL</application> by running the following
117 commands:
118 </para>
[dc775a26]119
[f25b43cb]120<screen><userinput>./configure --prefix=/usr \
[fdd7a91]121 --disable-static \
[b9e1a58]122 --enable-threaded-resolver &amp;&amp;
[bf8ac01]123make</userinput></screen>
[dc775a26]124
[ffa8c7f]125<!-- <para>
[2ca3997]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:
[355495ce]129 </para>
[dc775a26]130
[f346a49]131<screen><userinput>cat &gt;&gt; tests/data/DISABLED &lt;&lt; "EOF"
[2ca3997]132<literal>564
133700
134701
135703
136706
137707
138708
139709
140710
141711
[4949bda0]142712</literal>
[2ca3997]143EOF</userinput></screen>
144
[f3429309]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
[aaa73cfd]1482035 2037 2038 2041 2042
149
150 - Bruce 20151016
151
152Tests may be using capabilites removed from recent ssh due to
[f3429309]153security issues.
[aaa73cfd]154
155
[2ca3997]156 <para>
157 and running <command>make test</command>.
[ffa8c7f]158 </para>-->
159
160 <para>
[551baf16]161 To run the test suite, issue: <command>make test</command>.<!-- Some
[f3429309]162 tests (up to 2%) may fail due to timing issues, kernel configuration,
[551baf16]163 or other issues.-->
[2ca3997]164 </para>
[f346a49]165
[355495ce]166 <para>
167 Now, as the <systemitem class="username">root</systemitem>
168 user:
169 </para>
[dc775a26]170
[874fec7f]171<screen role="root"><userinput>make install &amp;&amp;
[5ee1266]172
173find docs \( -name Makefile\* \
174 -o -name \*.1 \
175 -o -name \*.3 \) \
176 -exec rm {} \; &amp;&amp;
[951fac10]177install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
[ad426ac]178cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
[0c02dcb]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>
[bf8ac01]189 </sect2>
[dc775a26]190
[bf8ac01]191 <sect2 role="commands">
192 <title>Command Explanations</title>
[dc775a26]193
[c627795]194 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
195 href="../../xincludes/static-libraries.xml"/>
[5ee1266]196
[fdd7a91]197 <para>
198 <parameter>--enable-threaded-resolver</parameter>: This switch enables
199 <application>cURL</application>'s builtin threaded DNS resolver.
200 </para>
201
[355495ce]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>
[b834dfc7]213
[355495ce]214 <para>
[5ee1266]215 <command>find docs ... -exec rm {} \;</command>: This command removes
[355495ce]216 <filename>Makefiles</filename> and man files from the documentation
[4949bda0]217 directory that would otherwise be installed by the commands that follow.
[355495ce]218 </para>
[32a8ca3]219
[bf8ac01]220 </sect2>
[dc775a26]221
[bf8ac01]222 <sect2 role="content">
223 <title>Contents</title>
[dc775a26]224
[bf8ac01]225 <segmentedlist>
226 <segtitle>Installed Programs</segtitle>
227 <segtitle>Installed Library</segtitle>
228 <segtitle>Installed Directories</segtitle>
[dc775a26]229
[bf8ac01]230 <seglistitem>
[355495ce]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>
[bf8ac01]241 </seglistitem>
242 </segmentedlist>
[dc775a26]243
[bf8ac01]244 <variablelist>
245 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
246 <?dbfo list-presentation="list"?>
247 <?dbhtml list-presentation="table"?>
[dc775a26]248
[bf8ac01]249 <varlistentry id="curl-prog">
250 <term><command>curl</command></term>
251 <listitem>
[355495ce]252 <para>
253 is a command line tool for transferring files with URL syntax.
[32a8ca3]254 </para>
[bf8ac01]255 <indexterm zone="curl curl-prog">
256 <primary sortas="b-curl">curl</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
[dc775a26]260
[bf8ac01]261 <varlistentry id="curl-config">
262 <term><command>curl-config</command></term>
263 <listitem>
[355495ce]264 <para>
265 prints information about the last compile, like libraries
266 linked to and prefix setting.
267 </para>
[bf8ac01]268 <indexterm zone="curl curl-config">
269 <primary sortas="b-curl-config">curl-config</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
[dc775a26]273
[bf8ac01]274 <varlistentry id="libcurl">
[874fec7f]275 <term><filename class="libraryfile">libcurl.so</filename></term>
[bf8ac01]276 <listitem>
[355495ce]277 <para>
278 provides the API functions required by
279 <command>curl</command> and other programs.
280 </para>
[bf8ac01]281 <indexterm zone="curl libcurl">
[874fec7f]282 <primary sortas="c-libcurl">libcurl.so</primary>
[bf8ac01]283 </indexterm>
284 </listitem>
285 </varlistentry>
[355495ce]286
[bf8ac01]287 </variablelist>
[355495ce]288
[bf8ac01]289 </sect2>
[355495ce]290
[f45b1953]291</sect1>
Note: See TracBrowser for help on using the repository browser.