[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 |
|
---|
[874fec7f] | 7 | <!ENTITY curl-download-http
|
---|
[b6c5448] | 8 | "http://curl.haxx.se/download/curl-&curl-version;.tar.bz2">
|
---|
[874fec7f] | 9 | <!--<!ENTITY curl-download-ftp
|
---|
| 10 | "ftp://gd.tuwien.ac.at/utils/archivers/curl/curl-&curl-version;.tar.bz2">-->
|
---|
[2b8421c] | 11 | <!ENTITY curl-download-ftp " ">
|
---|
[b6c5448] | 12 | <!ENTITY curl-md5sum "f0303d47d9d3e6e4f08c2863c6504823">
|
---|
| 13 | <!ENTITY curl-size "2.4 MB">
|
---|
[874fec7f] | 14 | <!ENTITY curl-buildsize "31 MB">
|
---|
| 15 | <!ENTITY curl-time "0.5 SBU">
|
---|
[a2d8572] | 16 | ]>
|
---|
| 17 |
|
---|
[377584f] | 18 | <sect1 id="curl" xreflabel="cURL-&curl-version;">
|
---|
[bf8ac01] | 19 | <?dbhtml filename="curl.html"?>
|
---|
[dc775a26] | 20 |
|
---|
[bf8ac01] | 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
[55329727] | 23 | <date>$Date$</date>
|
---|
[bf8ac01] | 24 | </sect1info>
|
---|
[dc775a26] | 25 |
|
---|
[3e89149] | 26 | <title>cURL-&curl-version;</title>
|
---|
[dc775a26] | 27 |
|
---|
[bf8ac01] | 28 | <indexterm zone="curl">
|
---|
[3e89149] | 29 | <primary sortas="a-cURL">cURL</primary>
|
---|
[bf8ac01] | 30 | </indexterm>
|
---|
[dc775a26] | 31 |
|
---|
[bf8ac01] | 32 | <sect2 role="package">
|
---|
[3e89149] | 33 | <title>Introduction to cURL</title>
|
---|
[dc775a26] | 34 |
|
---|
[2ca26748] | 35 | <para>The <application>cURL</application> package contains
|
---|
[32a8ca3] | 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.
|
---|
[874fec7f] | 40 | This ability to both download and upload files can be incorporated into
|
---|
| 41 | other programs to support functions like streaming media.</para>
|
---|
[dc775a26] | 42 |
|
---|
[1e62b33] | 43 | &lfs71_checked;
|
---|
[2b8421c] | 44 |
|
---|
[bf8ac01] | 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
[874fec7f] | 46 | <itemizedlist spacing="compact">
|
---|
[bf8ac01] | 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>
|
---|
[dc775a26] | 66 |
|
---|
[3e89149] | 67 | <bridgehead renderas="sect3">cURL Dependencies</bridgehead>
|
---|
[dc775a26] | 68 |
|
---|
[bf8ac01] | 69 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[358241d1] | 70 | <para role="optional"><!-- <xref linkend="pkgconfig"/>, -->
|
---|
[d5404360] | 71 | <xref linkend="openssl"/> or <xref linkend="gnutls"/>,
|
---|
[2ca26748] | 72 | <xref linkend="openldap"/>,
|
---|
[fcd6bf9d] | 73 | <xref linkend="libidn"/>,
|
---|
[b6c5448] | 74 | <xref linkend="mitkrb"/>,
|
---|
[a41f643] | 75 | <ulink url="http://www.libssh2.org">libssh2</ulink>
|
---|
[32a8ca3] | 76 | (for secure transfers),
|
---|
[2ca26748] | 77 | <ulink url="http://www.pdc.kth.se/kth-krb/">krb4</ulink>,
|
---|
[874fec7f] | 78 | <ulink
|
---|
| 79 | url="http://www.vintela.com/resources/topics/spnego/">SPNEGO</ulink>, and
|
---|
[bf8ac01] | 80 | <ulink url="http://daniel.haxx.se/projects/c-ares/">c-ares</ulink></para>
|
---|
[dc775a26] | 81 |
|
---|
[874fec7f] | 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>
|
---|
[c5e7d76] | 86 |
|
---|
[061ec9d] | 87 | <para condition="html" role="usernotes">User Notes:
|
---|
| 88 | <ulink url="&blfs-wiki;/curl"/></para>
|
---|
[bf8ac01] | 89 | </sect2>
|
---|
[dc775a26] | 90 |
|
---|
[bf8ac01] | 91 | <sect2 role="installation">
|
---|
[3e89149] | 92 | <title>Installation of cURL</title>
|
---|
[dc775a26] | 93 |
|
---|
[2ca26748] | 94 | <para>Install <application>cURL</application> by running the following
|
---|
[bf8ac01] | 95 | commands:</para>
|
---|
[dc775a26] | 96 |
|
---|
[1e62b33] | 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 &&
|
---|
[bf8ac01] | 99 | make</userinput></screen>
|
---|
[dc775a26] | 100 |
|
---|
[4880b3d2] | 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>
|
---|
[dc775a26] | 106 |
|
---|
[874fec7f] | 107 | <para>Now, as the <systemitem class="username">root</systemitem>
|
---|
| 108 | user:</para>
|
---|
[dc775a26] | 109 |
|
---|
[874fec7f] | 110 | <screen role="root"><userinput>make install &&
|
---|
| 111 | find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &&
|
---|
[951fac10] | 112 | install -v -d -m755 /usr/share/doc/curl-&curl-version; &&
|
---|
[ad426ac] | 113 | cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
|
---|
[bf8ac01] | 114 | </sect2>
|
---|
[dc775a26] | 115 |
|
---|
[bf8ac01] | 116 | <sect2 role="commands">
|
---|
| 117 | <title>Command Explanations</title>
|
---|
[dc775a26] | 118 |
|
---|
[b6c5448] | 119 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 120 | href="../../xincludes/static-libraries.xml"/>
|
---|
[874fec7f] | 121 |
|
---|
[1e62b33] | 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 |
|
---|
[9cf31e6] | 129 | <para><option>--with-ca-path=/etc/ssl/certs</option>: This option sets the
|
---|
[795e921] | 130 | directory to use as the path to the SSL certificates. If you've not
|
---|
[9cf31e6] | 131 | installed <xref linkend="openssl"/> or <xref linkend="gnutls"/> and
|
---|
| 132 | the <xref linkend="cacerts"/> you can remove this option.</para>
|
---|
| 133 |
|
---|
[2ca26748] | 134 | <para><option>--with-gssapi</option>:
|
---|
| 135 | This parameter adds <application>Kerberos 5</application> support to
|
---|
[bf8ac01] | 136 | <filename class="libraryfile">libcurl</filename>.</para>
|
---|
[dc775a26] | 137 |
|
---|
[b834dfc7] | 138 | <para><option>--with-libssh2</option>:
|
---|
| 139 | This parameter adds SSH2 protocol support to
|
---|
| 140 | <filename class="libraryfile">libcurl</filename>.</para>
|
---|
| 141 |
|
---|
[32a8ca3] | 142 | <para><option>--without-ssl --with-gnutls</option>:
|
---|
[2b8421c] | 143 | To build with <application>GnuTLS</application>
|
---|
| 144 | support instead of <application>OpenSSL</application> for SSL/TLS.</para>
|
---|
[32a8ca3] | 145 |
|
---|
[874fec7f] | 146 | <para><command>find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3"
|
---|
| 147 | \) -exec rm {} \;</command>: This command removes
|
---|
[479525ae] | 148 | <filename>Makefiles</filename> and man files from the documentation
|
---|
| 149 | directory that would otherwise be installed by the commands that
|
---|
| 150 | follow.</para>
|
---|
[bf8ac01] | 151 | </sect2>
|
---|
[dc775a26] | 152 |
|
---|
[bf8ac01] | 153 | <sect2 role="content">
|
---|
| 154 | <title>Contents</title>
|
---|
[dc775a26] | 155 |
|
---|
[bf8ac01] | 156 | <segmentedlist>
|
---|
| 157 | <segtitle>Installed Programs</segtitle>
|
---|
| 158 | <segtitle>Installed Library</segtitle>
|
---|
| 159 | <segtitle>Installed Directories</segtitle>
|
---|
[dc775a26] | 160 |
|
---|
[bf8ac01] | 161 | <seglistitem>
|
---|
| 162 | <seg>curl and curl-config</seg>
|
---|
[874fec7f] | 163 | <seg>libcurl.so</seg>
|
---|
| 164 | <seg>/usr/include/curl and /usr/share/doc/curl-&curl-version;</seg>
|
---|
[bf8ac01] | 165 | </seglistitem>
|
---|
| 166 | </segmentedlist>
|
---|
[dc775a26] | 167 |
|
---|
[bf8ac01] | 168 | <variablelist>
|
---|
| 169 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 170 | <?dbfo list-presentation="list"?>
|
---|
| 171 | <?dbhtml list-presentation="table"?>
|
---|
[dc775a26] | 172 |
|
---|
[bf8ac01] | 173 | <varlistentry id="curl-prog">
|
---|
| 174 | <term><command>curl</command></term>
|
---|
| 175 | <listitem>
|
---|
[32a8ca3] | 176 | <para>is a command line tool for transferring files with URL syntax.
|
---|
| 177 | </para>
|
---|
[bf8ac01] | 178 | <indexterm zone="curl curl-prog">
|
---|
| 179 | <primary sortas="b-curl">curl</primary>
|
---|
| 180 | </indexterm>
|
---|
| 181 | </listitem>
|
---|
| 182 | </varlistentry>
|
---|
[dc775a26] | 183 |
|
---|
[bf8ac01] | 184 | <varlistentry id="curl-config">
|
---|
| 185 | <term><command>curl-config</command></term>
|
---|
| 186 | <listitem>
|
---|
[2ca26748] | 187 | <para>prints information about the last compile, like libraries
|
---|
[bf8ac01] | 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>
|
---|
[dc775a26] | 194 |
|
---|
[bf8ac01] | 195 | <varlistentry id="libcurl">
|
---|
[874fec7f] | 196 | <term><filename class="libraryfile">libcurl.so</filename></term>
|
---|
[bf8ac01] | 197 | <listitem>
|
---|
[2ca26748] | 198 | <para>provides the API functions required by
|
---|
[bf8ac01] | 199 | <command>curl</command> and other programs.</para>
|
---|
| 200 | <indexterm zone="curl libcurl">
|
---|
[874fec7f] | 201 | <primary sortas="c-libcurl">libcurl.so</primary>
|
---|
[bf8ac01] | 202 | </indexterm>
|
---|
| 203 | </listitem>
|
---|
| 204 | </varlistentry>
|
---|
| 205 | </variablelist>
|
---|
| 206 | </sect2>
|
---|
[f45b1953] | 207 | </sect1>
|
---|