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