[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 |
|
---|
[355495ce] | 7 | <!ENTITY curl-download-http "http://curl.haxx.se/download/curl-&curl-version;.tar.bz2">
|
---|
[2b8421c] | 8 | <!ENTITY curl-download-ftp " ">
|
---|
[fdd7a91] | 9 | <!ENTITY curl-md5sum "fa5f37f38a8042020e292ce7ec5341ce">
|
---|
[ea21196] | 10 | <!ENTITY curl-size "2.5 MB">
|
---|
| 11 | <!ENTITY curl-buildsize "35 MB (additional 4 MB for tests)">
|
---|
[345a3456] | 12 | <!ENTITY curl-time "0.5 SBU (additional 3.5 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>
|
---|
[ea21196] | 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.
|
---|
[355495ce] | 39 | </para>
|
---|
[dc775a26] | 40 |
|
---|
[48de78d] | 41 | &lfs72_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 |
|
---|
[5b38e37] | 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 |
|
---|
[3e89149] | 87 | <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
|
---|
[dc775a26] | 88 |
|
---|
[355495ce] | 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 |
|
---|
[bf8ac01] | 95 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[355495ce] | 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"/>,
|
---|
[c627795] | 100 | <ulink url="https://launchpad.net/libmetalink/">libmetalink</ulink>,
|
---|
[355495ce] | 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>
|
---|
[c5e7d76] | 112 |
|
---|
[061ec9d] | 113 | <para condition="html" role="usernotes">User Notes:
|
---|
[355495ce] | 114 | <ulink url="&blfs-wiki;/curl"/>
|
---|
| 115 | </para>
|
---|
[bf8ac01] | 116 | </sect2>
|
---|
[dc775a26] | 117 |
|
---|
[bf8ac01] | 118 | <sect2 role="installation">
|
---|
[3e89149] | 119 | <title>Installation of cURL</title>
|
---|
[dc775a26] | 120 |
|
---|
[355495ce] | 121 | <para>
|
---|
| 122 | Install <application>cURL</application> by running the following
|
---|
| 123 | commands:
|
---|
| 124 | </para>
|
---|
[dc775a26] | 125 |
|
---|
[5b38e37] | 126 | <screen><userinput>patch -Np1 -i ../curl-&curl-version;-upstream_fixes-1.patch &&
|
---|
| 127 | sed -i '/--static-libs)/{N;s#echo .*#echo #;}' curl-config.in &&
|
---|
[fdd7a91] | 128 | ./configure --prefix=/usr \
|
---|
| 129 | --disable-static \
|
---|
| 130 | --enable-threaded-resolver \
|
---|
| 131 | --with-ca-path=/etc/ssl/certs &&
|
---|
[bf8ac01] | 132 | make</userinput></screen>
|
---|
[dc775a26] | 133 |
|
---|
[355495ce] | 134 | <para>
|
---|
[c627795] | 135 | To test the results, issue: <command>make check</command>.
|
---|
[355495ce] | 136 | </para>
|
---|
[dc775a26] | 137 |
|
---|
[355495ce] | 138 | <para>
|
---|
| 139 | Now, as the <systemitem class="username">root</systemitem>
|
---|
| 140 | user:
|
---|
| 141 | </para>
|
---|
[dc775a26] | 142 |
|
---|
[874fec7f] | 143 | <screen role="root"><userinput>make install &&
|
---|
| 144 | find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &&
|
---|
[951fac10] | 145 | install -v -d -m755 /usr/share/doc/curl-&curl-version; &&
|
---|
[ad426ac] | 146 | cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
|
---|
[bf8ac01] | 147 | </sect2>
|
---|
[dc775a26] | 148 |
|
---|
[bf8ac01] | 149 | <sect2 role="commands">
|
---|
| 150 | <title>Command Explanations</title>
|
---|
[dc775a26] | 151 |
|
---|
[1e62b33] | 152 | <para>
|
---|
| 153 | <command>sed -i '/--static-libs)/{N;s#echo .*#echo #;}'
|
---|
[b3aacc0] | 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-->.
|
---|
[1e62b33] | 158 | </para>
|
---|
| 159 |
|
---|
[c627795] | 160 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 161 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 162 |
|
---|
[fdd7a91] | 163 | <para>
|
---|
| 164 | <parameter>--enable-threaded-resolver</parameter>: This switch enables
|
---|
| 165 | <application>cURL</application>'s builtin threaded DNS resolver.
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
[355495ce] | 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>
|
---|
[9cf31e6] | 175 |
|
---|
[355495ce] | 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>
|
---|
[b834dfc7] | 187 |
|
---|
[355495ce] | 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>
|
---|
[32a8ca3] | 195 |
|
---|
[bf8ac01] | 196 | </sect2>
|
---|
[dc775a26] | 197 |
|
---|
[bf8ac01] | 198 | <sect2 role="content">
|
---|
| 199 | <title>Contents</title>
|
---|
[dc775a26] | 200 |
|
---|
[bf8ac01] | 201 | <segmentedlist>
|
---|
| 202 | <segtitle>Installed Programs</segtitle>
|
---|
| 203 | <segtitle>Installed Library</segtitle>
|
---|
| 204 | <segtitle>Installed Directories</segtitle>
|
---|
[dc775a26] | 205 |
|
---|
[bf8ac01] | 206 | <seglistitem>
|
---|
[355495ce] | 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>
|
---|
[bf8ac01] | 217 | </seglistitem>
|
---|
| 218 | </segmentedlist>
|
---|
[dc775a26] | 219 |
|
---|
[bf8ac01] | 220 | <variablelist>
|
---|
| 221 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 222 | <?dbfo list-presentation="list"?>
|
---|
| 223 | <?dbhtml list-presentation="table"?>
|
---|
[dc775a26] | 224 |
|
---|
[bf8ac01] | 225 | <varlistentry id="curl-prog">
|
---|
| 226 | <term><command>curl</command></term>
|
---|
| 227 | <listitem>
|
---|
[355495ce] | 228 | <para>
|
---|
| 229 | is a command line tool for transferring files with URL syntax.
|
---|
[32a8ca3] | 230 | </para>
|
---|
[bf8ac01] | 231 | <indexterm zone="curl curl-prog">
|
---|
| 232 | <primary sortas="b-curl">curl</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
[dc775a26] | 236 |
|
---|
[bf8ac01] | 237 | <varlistentry id="curl-config">
|
---|
| 238 | <term><command>curl-config</command></term>
|
---|
| 239 | <listitem>
|
---|
[355495ce] | 240 | <para>
|
---|
| 241 | prints information about the last compile, like libraries
|
---|
| 242 | linked to and prefix setting.
|
---|
| 243 | </para>
|
---|
[bf8ac01] | 244 | <indexterm zone="curl curl-config">
|
---|
| 245 | <primary sortas="b-curl-config">curl-config</primary>
|
---|
| 246 | </indexterm>
|
---|
| 247 | </listitem>
|
---|
| 248 | </varlistentry>
|
---|
[dc775a26] | 249 |
|
---|
[bf8ac01] | 250 | <varlistentry id="libcurl">
|
---|
[874fec7f] | 251 | <term><filename class="libraryfile">libcurl.so</filename></term>
|
---|
[bf8ac01] | 252 | <listitem>
|
---|
[355495ce] | 253 | <para>
|
---|
| 254 | provides the API functions required by
|
---|
| 255 | <command>curl</command> and other programs.
|
---|
| 256 | </para>
|
---|
[bf8ac01] | 257 | <indexterm zone="curl libcurl">
|
---|
[874fec7f] | 258 | <primary sortas="c-libcurl">libcurl.so</primary>
|
---|
[bf8ac01] | 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
[355495ce] | 262 |
|
---|
[bf8ac01] | 263 | </variablelist>
|
---|
[355495ce] | 264 |
|
---|
[bf8ac01] | 265 | </sect2>
|
---|
[355495ce] | 266 |
|
---|
[f45b1953] | 267 | </sect1>
|
---|