source: networking/netlibs/curl.xml@ 355495ce

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 355495ce was 355495ce, checked in by Krejzi <krejzi@…>, 12 years ago

Boost 1.50.0, cURL 7.26.0, GLib 2.32.4, ICU 49.1.2, PCRE 8.31 and Python 3.2.3 updates. r128 xorg driver version 6.8.1 -> 6.8.2

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

  • Property mode set to 100644
File size: 7.9 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 "bfa80f01b3d300359cfb4d409b6136a3">
10 <!ENTITY curl-size "2.4 MB">
11 <!ENTITY curl-buildsize "28 MB">
12 <!ENTITY curl-time "0.5 SBU">
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
34 <command>curl</command> and its support library
35 <filename class="libraryfile">libcurl</filename>. This is useful for
36 transferring files with URL syntax to any of the following protocols:
37 FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS
38 and FILE. This ability to both download and upload files can be
39 incorporated into other programs to support functions like streaming
40 media.
41 </para>
42
43 &lfs71_checked;
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>
49 Download (HTTP): <ulink url="&curl-download-http;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download (FTP): <ulink url="&curl-download-ftp;"/>
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download MD5 sum: &curl-md5sum;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Download size: &curl-size;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated disk space required: &curl-buildsize;
70 </para>
71 </listitem>
72 <listitem>
73 <para>
74 Estimated build time: &curl-time;
75 </para>
76 </listitem>
77 </itemizedlist>
78
79 <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
83 <xref linkend="cacerts"/> and
84 <xref linkend="openssl"/> or <xref linkend="gnutls"/>
85 </para>
86
87 <bridgehead renderas="sect4">Optional</bridgehead>
88 <para role="optional">
89 <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink>,
90 <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
91 <xref linkend="libidn"/>,
92 <ulink url="http://www.libssh2.org">libssh2</ulink>,
93 <xref linkend="mitkrb"/>,
94 <xref linkend="openldap"/> and
95 <ulink url="http://www.vintela.com/resources/topics/spnego/">
96 SPNEGO</ulink>
97 </para>
98
99 <bridgehead renderas="sect4">Optional for Running the Test Suite</bridgehead>
100 <para role="optional">
101 <xref linkend="stunnel"/> (for the HTTPS and FTPS tests)
102 </para>
103
104 <para condition="html" role="usernotes">User Notes:
105 <ulink url="&blfs-wiki;/curl"/>
106 </para>
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of cURL</title>
111
112 <para>
113 Install <application>cURL</application> by running the following
114 commands:
115 </para>
116
117<screen><userinput>sed -i '/--static-libs)/{N;s#echo .*#echo #;}' curl-config.in &amp;&amp;
118./configure --prefix=/usr --disable-static --with-ca-path=/etc/ssl/certs &amp;&amp;
119make</userinput></screen>
120
121 <para>
122 To test the results, issue: <command>make check</command>. Note that
123 if you have <application>Stunnel</application> and
124 <application>TCP Wrapper</application> installed and you wish to perform
125 the HTTPS tests, you'll need to have an unrestrictive
126 <filename>/etc/hosts.deny</filename> file.
127 </para>
128
129 <para>
130 Now, as the <systemitem class="username">root</systemitem>
131 user:
132 </para>
133
134<screen role="root"><userinput>make install &amp;&amp;
135find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &amp;&amp;
136install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
137cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
138 </sect2>
139
140 <sect2 role="commands">
141 <title>Command Explanations</title>
142
143 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
144 href="../../xincludes/static-libraries.xml"/>
145
146 <para>
147 <command>sed -i '/--static-libs)/{N;s#echo .*#echo #;}'
148 curl-config.in</command>: As we've not installed the static libraries,
149 this sed removes the static libs line from curl-config as it might
150 otherwise confuse other applications<!--such as pycurl-->.
151 </para>
152
153 <para>
154 <parameter>--with-ca-path=/etc/ssl/certs</parameter>: This parameter
155 sets the directory to use as the path to the SSL certificates.
156 If you've not installed <xref linkend="openssl"/> or
157 <xref linkend="gnutls"/> and the <xref linkend="cacerts"/> you can
158 remove this option.
159 </para>
160
161 <para>
162 <option>--with-gssapi</option>: This parameter adds
163 <application>Kerberos 5</application> support to
164 <filename class="libraryfile">libcurl</filename>.
165 </para>
166
167 <para>
168 <option>--with-libssh2</option>: This parameter adds
169 SSH2 protocol support to
170 <filename class="libraryfile">libcurl</filename>.
171 </para>
172
173 <para>
174 <option>--without-ssl --with-gnutls</option>: Use to
175 build with <application>GnuTLS</application> support
176 instead of <application>OpenSSL</application> for SSL/TLS.
177 </para>
178
179 <para>
180 <command>find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3"
181 \) -exec rm {} \;</command>: This command removes
182 <filename>Makefiles</filename> and man files from the documentation
183 directory that would otherwise be installed by the commands that
184 follow.
185 </para>
186
187 </sect2>
188
189 <sect2 role="content">
190 <title>Contents</title>
191
192 <segmentedlist>
193 <segtitle>Installed Programs</segtitle>
194 <segtitle>Installed Library</segtitle>
195 <segtitle>Installed Directories</segtitle>
196
197 <seglistitem>
198 <seg>
199 curl and curl-config
200 </seg>
201 <seg>
202 libcurl.so
203 </seg>
204 <seg>
205 /usr/include/curl and
206 /usr/share/doc/curl-&curl-version;
207 </seg>
208 </seglistitem>
209 </segmentedlist>
210
211 <variablelist>
212 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
213 <?dbfo list-presentation="list"?>
214 <?dbhtml list-presentation="table"?>
215
216 <varlistentry id="curl-prog">
217 <term><command>curl</command></term>
218 <listitem>
219 <para>
220 is a command line tool for transferring files with URL syntax.
221 </para>
222 <indexterm zone="curl curl-prog">
223 <primary sortas="b-curl">curl</primary>
224 </indexterm>
225 </listitem>
226 </varlistentry>
227
228 <varlistentry id="curl-config">
229 <term><command>curl-config</command></term>
230 <listitem>
231 <para>
232 prints information about the last compile, like libraries
233 linked to and prefix setting.
234 </para>
235 <indexterm zone="curl curl-config">
236 <primary sortas="b-curl-config">curl-config</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>
240
241 <varlistentry id="libcurl">
242 <term><filename class="libraryfile">libcurl.so</filename></term>
243 <listitem>
244 <para>
245 provides the API functions required by
246 <command>curl</command> and other programs.
247 </para>
248 <indexterm zone="curl libcurl">
249 <primary sortas="c-libcurl">libcurl.so</primary>
250 </indexterm>
251 </listitem>
252 </varlistentry>
253
254 </variablelist>
255
256 </sect2>
257
258</sect1>
Note: See TracBrowser for help on using the repository browser.