source: networking/netlibs/curl.xml@ 405c8dc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 405c8dc was 405c8dc, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

LFS-7.3 tags thanks to Thoms Trepl

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

  • Property mode set to 100644
File size: 8.2 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.bz2">
8 <!ENTITY curl-download-ftp " ">
9 <!ENTITY curl-md5sum "fa5f37f38a8042020e292ce7ec5341ce">
10 <!ENTITY curl-size "2.5 MB">
11 <!ENTITY curl-buildsize "35 MB (additional 4 MB for tests)">
12 <!ENTITY curl-time "0.5 SBU (additional 3.5 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 an 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 &lfs73_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">Additional Downloads</bridgehead>
78 <itemizedlist spacing="compact">
79 <listitem>
80 <para>
81 Required patch:
82 <ulink url="&patch-root;/curl-&curl-version;-upstream_fixes-1.patch"/>
83 </para>
84 </listitem>
85 </itemizedlist>
86
87 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
88
89 <bridgehead renderas="sect4">Recommended</bridgehead>
90 <para role="recommended">
91 <xref linkend="cacerts"/> and
92 <xref linkend="openssl"/> or <xref linkend="gnutls"/>
93 </para>
94
95 <bridgehead renderas="sect4">Optional</bridgehead>
96 <para role="optional">
97 <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
98 <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
99 <xref linkend="libidn"/>,
100 <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
101 <ulink url="http://www.libssh2.org">libssh2</ulink>,
102 <xref linkend="mitkrb"/>,
103 <xref linkend="openldap"/> and
104 <ulink url="http://www.vintela.com/resources/topics/spnego/">
105 SPNEGO</ulink>
106 </para>
107
108 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
109 <para role="optional">
110 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests)
111 </para>
112
113 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/curl"/>
115 </para>
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of cURL</title>
120
121 <para>
122 Install <application>cURL</application> by running the following
123 commands:
124 </para>
125
126<screen><userinput>patch -Np1 -i ../curl-&curl-version;-upstream_fixes-1.patch &amp;&amp;
127sed -i '/--static-libs)/{N;s#echo .*#echo #;}' curl-config.in &amp;&amp;
128./configure --prefix=/usr \
129 --disable-static \
130 --enable-threaded-resolver \
131 --with-ca-path=/etc/ssl/certs &amp;&amp;
132make</userinput></screen>
133
134 <para>
135 To test the results, issue: <command>make check</command>.
136 </para>
137
138 <para>
139 Now, as the <systemitem class="username">root</systemitem>
140 user:
141 </para>
142
143<screen role="root"><userinput>make install &amp;&amp;
144find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &amp;&amp;
145install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
146cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
147 </sect2>
148
149 <sect2 role="commands">
150 <title>Command Explanations</title>
151
152 <para>
153 <command>sed -i '/--static-libs)/{N;s#echo .*#echo #;}'
154 curl-config.in</command>: Since the static libraries have not been installed,
155 this <command>sed</command> removes the static libs line from
156 <command>curl-config</command> as it might otherwise confuse other
157 applications<!--such as pycurl-->.
158 </para>
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 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This parameter
170 sets the directory to use as the path to the SSL certificates.
171 If you've not installed <xref linkend="openssl"/> or
172 <xref linkend="gnutls"/> and the <xref linkend="cacerts"/> you can
173 remove this option.
174 </para>
175
176 <para>
177 <option>--with-gssapi</option>: This parameter adds
178 <application>Kerberos 5</application> support to
179 <filename class="libraryfile">libcurl</filename>.
180 </para>
181
182 <para>
183 <option>--without-ssl --with-gnutls</option>: Use to
184 build with <application>GnuTLS</application> support
185 instead of <application>OpenSSL</application> for SSL/TLS.
186 </para>
187
188 <para>
189 <command>find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3"
190 \) -exec rm {} \;</command>: This command removes
191 <filename>Makefiles</filename> and man files from the documentation
192 directory that would otherwise be installed by the commands that
193 follow.
194 </para>
195
196 </sect2>
197
198 <sect2 role="content">
199 <title>Contents</title>
200
201 <segmentedlist>
202 <segtitle>Installed Programs</segtitle>
203 <segtitle>Installed Library</segtitle>
204 <segtitle>Installed Directories</segtitle>
205
206 <seglistitem>
207 <seg>
208 curl and curl-config
209 </seg>
210 <seg>
211 libcurl.so
212 </seg>
213 <seg>
214 /usr/include/curl and
215 /usr/share/doc/curl-&curl-version;
216 </seg>
217 </seglistitem>
218 </segmentedlist>
219
220 <variablelist>
221 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
222 <?dbfo list-presentation="list"?>
223 <?dbhtml list-presentation="table"?>
224
225 <varlistentry id="curl-prog">
226 <term><command>curl</command></term>
227 <listitem>
228 <para>
229 is a command line tool for transferring files with URL syntax.
230 </para>
231 <indexterm zone="curl curl-prog">
232 <primary sortas="b-curl">curl</primary>
233 </indexterm>
234 </listitem>
235 </varlistentry>
236
237 <varlistentry id="curl-config">
238 <term><command>curl-config</command></term>
239 <listitem>
240 <para>
241 prints information about the last compile, like libraries
242 linked to and prefix setting.
243 </para>
244 <indexterm zone="curl curl-config">
245 <primary sortas="b-curl-config">curl-config</primary>
246 </indexterm>
247 </listitem>
248 </varlistentry>
249
250 <varlistentry id="libcurl">
251 <term><filename class="libraryfile">libcurl.so</filename></term>
252 <listitem>
253 <para>
254 provides the API functions required by
255 <command>curl</command> and other programs.
256 </para>
257 <indexterm zone="curl libcurl">
258 <primary sortas="c-libcurl">libcurl.so</primary>
259 </indexterm>
260 </listitem>
261 </varlistentry>
262
263 </variablelist>
264
265 </sect2>
266
267</sect1>
Note: See TracBrowser for help on using the repository browser.