source: networking/netlibs/curl.xml@ b6c5448

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

krb5 1.10.1, expat 2.1.0, curl 7.25.0, libdrm 2.4.33, iptables 1.4.13

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

  • Property mode set to 100644
File size: 7.1 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
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 &lfs70_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>./configure --prefix=/usr --disable-static --with-ca-path=/etc/ssl/certs &amp;&amp;
98make</userinput></screen>
99
100 <para>To test the results, issue: <command>make check</command>. Note that
101 if you have <application>Stunnel</application> and
102 <application>TCP Wrapper</application> installed and you wish to perform
103 the HTTPS tests, you'll need to have an unrestrictive
104 <filename>/etc/hosts.deny</filename> file.</para>
105
106 <para>Now, as the <systemitem class="username">root</systemitem>
107 user:</para>
108
109<screen role="root"><userinput>make install &amp;&amp;
110find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3" \) -exec rm {} \; &amp;&amp;
111install -v -d -m755 /usr/share/doc/curl-&curl-version; &amp;&amp;
112cp -v -R docs/* /usr/share/doc/curl-&curl-version;</userinput></screen>
113 </sect2>
114
115 <sect2 role="commands">
116 <title>Command Explanations</title>
117
118 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
119 href="../../xincludes/static-libraries.xml"/>
120
121 <para><option>--with-ca-path=/etc/ssl/certs</option>: This option sets the
122 directory to use as the path to the SSL certificates. If you've not
123 installed <xref linkend="openssl"/> or <xref linkend="gnutls"/> and
124 the <xref linkend="cacerts"/> you can remove this option.</para>
125
126 <para><option>--with-gssapi</option>:
127 This parameter adds <application>Kerberos 5</application> support to
128 <filename class="libraryfile">libcurl</filename>.</para>
129
130 <para><option>--with-libssh2</option>:
131 This parameter adds SSH2 protocol support to
132 <filename class="libraryfile">libcurl</filename>.</para>
133
134 <para><option>--without-ssl --with-gnutls</option>:
135 To build with <application>GnuTLS</application>
136 support instead of <application>OpenSSL</application> for SSL/TLS.</para>
137
138 <para><command>find docs \( -name "Makefile*" -o -name "*.1" -o -name "*.3"
139 \) -exec rm {} \;</command>: This command removes
140 <filename>Makefiles</filename> and man files from the documentation
141 directory that would otherwise be installed by the commands that
142 follow.</para>
143 </sect2>
144
145 <sect2 role="content">
146 <title>Contents</title>
147
148 <segmentedlist>
149 <segtitle>Installed Programs</segtitle>
150 <segtitle>Installed Library</segtitle>
151 <segtitle>Installed Directories</segtitle>
152
153 <seglistitem>
154 <seg>curl and curl-config</seg>
155 <seg>libcurl.so</seg>
156 <seg>/usr/include/curl and /usr/share/doc/curl-&curl-version;</seg>
157 </seglistitem>
158 </segmentedlist>
159
160 <variablelist>
161 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
162 <?dbfo list-presentation="list"?>
163 <?dbhtml list-presentation="table"?>
164
165 <varlistentry id="curl-prog">
166 <term><command>curl</command></term>
167 <listitem>
168 <para>is a command line tool for transferring files with URL syntax.
169 </para>
170 <indexterm zone="curl curl-prog">
171 <primary sortas="b-curl">curl</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="curl-config">
177 <term><command>curl-config</command></term>
178 <listitem>
179 <para>prints information about the last compile, like libraries
180 linked to and prefix setting.</para>
181 <indexterm zone="curl curl-config">
182 <primary sortas="b-curl-config">curl-config</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="libcurl">
188 <term><filename class="libraryfile">libcurl.so</filename></term>
189 <listitem>
190 <para>provides the API functions required by
191 <command>curl</command> and other programs.</para>
192 <indexterm zone="curl libcurl">
193 <primary sortas="c-libcurl">libcurl.so</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197 </variablelist>
198 </sect2>
199</sect1>
Note: See TracBrowser for help on using the repository browser.