source: networking/netlibs/curl.xml@ c598ba9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 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 c598ba9 was 2de0145, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to curl-7.55.1

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

  • Property mode set to 100644
File size: 9.9 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
[92d2b83]7 <!ENTITY curl-download-http "https://curl.haxx.se/download/curl-&curl-version;.tar.xz">
[2b8421c]8 <!ENTITY curl-download-ftp " ">
[2de0145]9 <!ENTITY curl-md5sum "ac4a59c38c47adc160ea71eace20257b">
[92d2b83]10 <!ENTITY curl-size "2.1 MB">
[2de0145]11 <!ENTITY curl-buildsize "36 MB (additional 11 MB for tests)">
12 <!ENTITY curl-time "0.3 SBU (additional 4.3 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>
[587dc526]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
[4bf60a36]41 &lfs81_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
[58d5000]77<!-- Tests seem to pass without any patch
[cb6f557]78 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact">
80 <listitem>
81 <para>
82 Required patch:
83 <ulink url="&patch-root;/curl-&curl-version;-valgrind_filter-1.patch"/>
84 </para>
85 </listitem>
86 </itemizedlist>
[58d5000]87-->
[3e89149]88 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
[dc775a26]89
[355495ce]90 <bridgehead renderas="sect4">Recommended</bridgehead>
91 <para role="recommended">
[b2d0e3d]92 <xref linkend="cacerts"/> (runtime) and
[2eb903f]93 <xref linkend="openssl"/>
[355495ce]94 </para>
95
[bf8ac01]96 <bridgehead renderas="sect4">Optional</bridgehead>
[355495ce]97 <para role="optional">
[4464d405]98 <xref linkend="c-ares"/>,
[2eb903f]99 <xref linkend="gnutls"/>,
[355495ce]100 <xref linkend="mitkrb"/>,
[0c702b61]101 <xref linkend="nghttp2"/>,
[fad8db2]102 <xref linkend="openldap"/>,
[4949bda0]103 <xref linkend="samba"/>,
[e519fef]104 <ulink url="https://www.gnu.org/software/libidn/#libidn2/">libidn2</ulink>,
[fad8db2]105 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
[67cc05e]106 <ulink url="https://github.com/rockdaboot/libpsl">libpsl</ulink>,
107 <ulink url="http://rtmpdump.mplayerhq.hu/">librtmp</ulink>,
[551baf16]108 <ulink url="http://www.libssh2.org">libssh2</ulink>,
109 <ulink url="https://tls.mbed.org/">mbed TLS (formerly known as
110 PolarSSL)</ulink>, and
[2ca3997]111 <ulink url="http://spnego.sourceforge.net/">
[355495ce]112 SPNEGO</ulink>
113 </para>
114
115 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
116 <para role="optional">
[f346a49]117 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests) and
118 <xref linkend="valgrind"/>
[355495ce]119 </para>
[c5e7d76]120
[061ec9d]121 <para condition="html" role="usernotes">User Notes:
[355495ce]122 <ulink url="&blfs-wiki;/curl"/>
123 </para>
[bf8ac01]124 </sect2>
[dc775a26]125
[bf8ac01]126 <sect2 role="installation">
[3e89149]127 <title>Installation of cURL</title>
[dc775a26]128
[355495ce]129 <para>
130 Install <application>cURL</application> by running the following
131 commands:
132 </para>
[dc775a26]133
[58d5000]134<screen><userinput>./configure --prefix=/usr \
[30b7db74]135 --disable-static \
136 --enable-threaded-resolver \
[038b4c75]137 --with-ca-path=/etc/ssl/certs &amp;&amp;
[bf8ac01]138make</userinput></screen>
[dc775a26]139
[8ffdb08]140<!--
[58d5000]141 For version 7.54.1 I got:
142 TESTDONE: 869 tests out of 869 reported OK: 100%
143 TESTDONE: 1092 tests were considered during 1080 seconds
[8ffdb08]144
145 <para>
[2ca3997]146 Running the test suite is optional. About 2% of the tests fail. Increase
147 in test time by each failed test is about 10%. Tests SBU above was
148 obtained disabling failing tests, with:
[355495ce]149 </para>
[8ffdb08]150-->
151 <note>
152 <para>
153 To run the tests for this package, valgrind requires a version of the
154 /lib/ld-2.23.so (or later) library with debugging symbols present.
155 Normally in LFS these debugging symbols are stripped at the end of
156 Chapter 6. To get this library, glibc must be rebuilt with the current
157 glibc version using the same compiler that was used to build LFS. The
158 ld-2.23.so can then be renamed to ld-2.23.so.dbg and copied to /lib. Then
159 a symlink needs to be changed:
160 </para>
161
162 <screen role="nodump"><userinput>ln -sfv ld-2.23.so.dbg /lib/ld-linux-x86-64.so.2</userinput></screen>
163
164 <para>
165 Adjust the above instruction as needed for a 32-bit system
[e4ca0af7]166 or for a different version of glibc.
[8ffdb08]167 </para>
168 </note>
[ffa8c7f]169
170 <para>
[8ffdb08]171 To run the test suite, issue: <command>make test</command>.
[2ca3997]172 </para>
[f346a49]173
[355495ce]174 <para>
175 Now, as the <systemitem class="username">root</systemitem>
176 user:
177 </para>
[dc775a26]178
[874fec7f]179<screen role="root"><userinput>make install &amp;&amp;
[5ee1266]180
[b5969599]181rm -rf docs/examples/.deps &amp;&amp;
182
[5ee1266]183find docs \( -name Makefile\* \
184 -o -name \*.1 \
185 -o -name \*.3 \) \
186 -exec rm {} \; &amp;&amp;
[e4ca0af7]187install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
[d832a872]188cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
[0c02dcb]189
190 <para>
191 Simple tests to the new installed <command>curl</command>:
192 <command>curl --trace-ascii debugdump.txt http://www.example.com/</command>
193 and
194 <command>curl --trace-ascii d.txt --trace-time http://example.com/</command>.
195 Inspect the locally created trace files <filename>debugdump.txt</filename>
196 and <filename>d.txt</filename>, which contain version downloaded
197 files information, etc. One file has the time for each action logged.
198 </para>
[bf8ac01]199 </sect2>
[dc775a26]200
[bf8ac01]201 <sect2 role="commands">
202 <title>Command Explanations</title>
[dc775a26]203
[c627795]204 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
205 href="../../xincludes/static-libraries.xml"/>
[5ee1266]206
[fdd7a91]207 <para>
208 <parameter>--enable-threaded-resolver</parameter>: This switch enables
209 <application>cURL</application>'s builtin threaded DNS resolver.
210 </para>
211
[30b7db74]212 <para>
[038b4c75]213 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This
214 switch sets the location of the BLFS <xref linkend="cacerts"/>.
[30b7db74]215 </para>
216
[355495ce]217 <para>
218 <option>--with-gssapi</option>: This parameter adds
219 <application>Kerberos 5</application> support to
220 <filename class="libraryfile">libcurl</filename>.
221 </para>
222
223 <para>
224 <option>--without-ssl --with-gnutls</option>: Use to
225 build with <application>GnuTLS</application> support
226 instead of <application>OpenSSL</application> for SSL/TLS.
227 </para>
[b834dfc7]228
[038b4c75]229 <para>
[0e29df6]230 <option>--with-ca-bundle=/etc/ssl/ca-bundle.crt</option>: Use
[038b4c75]231 this switch instead of <parameter>--with-ca-path</parameter> if
232 building with <application>GnuTLS</application> support
233 instead of <application>OpenSSL</application> for SSL/TLS.
234 </para>
235
[355495ce]236 <para>
[5ee1266]237 <command>find docs ... -exec rm {} \;</command>: This command removes
[355495ce]238 <filename>Makefiles</filename> and man files from the documentation
[4949bda0]239 directory that would otherwise be installed by the commands that follow.
[355495ce]240 </para>
[32a8ca3]241
[bf8ac01]242 </sect2>
[dc775a26]243
[bf8ac01]244 <sect2 role="content">
245 <title>Contents</title>
[dc775a26]246
[bf8ac01]247 <segmentedlist>
248 <segtitle>Installed Programs</segtitle>
249 <segtitle>Installed Library</segtitle>
250 <segtitle>Installed Directories</segtitle>
[dc775a26]251
[bf8ac01]252 <seglistitem>
[355495ce]253 <seg>
[038b4c75]254 curl, and curl-config
[355495ce]255 </seg>
256 <seg>
257 libcurl.so
258 </seg>
259 <seg>
260 /usr/include/curl and
261 /usr/share/doc/curl-&curl-version;
262 </seg>
[bf8ac01]263 </seglistitem>
264 </segmentedlist>
[dc775a26]265
[bf8ac01]266 <variablelist>
267 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
268 <?dbfo list-presentation="list"?>
269 <?dbhtml list-presentation="table"?>
[dc775a26]270
[bf8ac01]271 <varlistentry id="curl-prog">
272 <term><command>curl</command></term>
273 <listitem>
[355495ce]274 <para>
275 is a command line tool for transferring files with URL syntax.
[32a8ca3]276 </para>
[bf8ac01]277 <indexterm zone="curl curl-prog">
278 <primary sortas="b-curl">curl</primary>
279 </indexterm>
280 </listitem>
281 </varlistentry>
[dc775a26]282
[bf8ac01]283 <varlistentry id="curl-config">
284 <term><command>curl-config</command></term>
285 <listitem>
[355495ce]286 <para>
287 prints information about the last compile, like libraries
288 linked to and prefix setting.
289 </para>
[bf8ac01]290 <indexterm zone="curl curl-config">
291 <primary sortas="b-curl-config">curl-config</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
[dc775a26]295
[bf8ac01]296 <varlistentry id="libcurl">
[874fec7f]297 <term><filename class="libraryfile">libcurl.so</filename></term>
[bf8ac01]298 <listitem>
[355495ce]299 <para>
300 provides the API functions required by
301 <command>curl</command> and other programs.
302 </para>
[bf8ac01]303 <indexterm zone="curl libcurl">
[874fec7f]304 <primary sortas="c-libcurl">libcurl.so</primary>
[bf8ac01]305 </indexterm>
306 </listitem>
307 </varlistentry>
[355495ce]308
[bf8ac01]309 </variablelist>
[355495ce]310
[bf8ac01]311 </sect2>
[355495ce]312
[f45b1953]313</sect1>
Note: See TracBrowser for help on using the repository browser.