source: networking/netlibs/curl.xml@ ea21196

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 ea21196 was ea21196, checked in by Krejzi <krejzi@…>, 11 years ago

Even more package upgrades.

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

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