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 apr-download-http
|
---|
8 | "https://archive.apache.org/dist/apr/apr-&apr-version;.tar.bz2">
|
---|
9 | <!ENTITY apr-download-ftp
|
---|
10 | "ftp://ftp.mirrorservice.org/sites/ftp.apache.org/apr/apr-&apr-version;.tar.bz2">
|
---|
11 | <!ENTITY apr-md5sum "7a14a83d664e87599ea25ff4432e48a7">
|
---|
12 | <!ENTITY apr-size "852 KB">
|
---|
13 | <!ENTITY apr-buildsize "11 MB (additional 4 MB for the tests)">
|
---|
14 | <!ENTITY apr-time "0.2 SBU (add 1.7 SBU for tests)">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="apr" xreflabel="Apr-&apr-version;">
|
---|
18 | <?dbhtml filename="apr.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Apr-&apr-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="apr">
|
---|
27 | <primary sortas="a-apr">Apr</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Apr</title>
|
---|
32 |
|
---|
33 | <para>
|
---|
34 | The Apache Portable Runtime (APR) is a supporting library for the
|
---|
35 | Apache web server. It provides a set of application programming interfaces
|
---|
36 | (APIs) that map to the underlying Operating System (OS). Where the OS
|
---|
37 | doesn't support a particular function, APR will provide an emulation. Thus
|
---|
38 | programmers can use the APR to make a program portable across different
|
---|
39 | platforms.
|
---|
40 | </para>
|
---|
41 |
|
---|
42 | &lfs110_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (HTTP): <ulink url="&apr-download-http;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download (FTP): <ulink url="&apr-download-ftp;"/>
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download MD5 sum: &apr-md5sum;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Download size: &apr-size;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated disk space required: &apr-buildsize;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | <listitem>
|
---|
72 | <para>
|
---|
73 | Estimated build time: &apr-time;
|
---|
74 | </para>
|
---|
75 | </listitem>
|
---|
76 | </itemizedlist>
|
---|
77 |
|
---|
78 | <para condition="html" role="usernotes">
|
---|
79 | User Notes: <ulink url="&blfs-wiki;/apr"/>
|
---|
80 | </para>
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 role="installation">
|
---|
84 | <title>Installation of Apr</title>
|
---|
85 |
|
---|
86 | <para>
|
---|
87 | First, fix a security issue:
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <screen><userinput>sed '/{306/a \
|
---|
91 | \
|
---|
92 | if (xt->tm_mon < 0 || xt->tm_mon >= 12) \
|
---|
93 | return APR_EBADDATE;' -i time/unix/time.c</userinput></screen>
|
---|
94 |
|
---|
95 | <para>
|
---|
96 | Install <application>Apr</application> by running the following commands:
|
---|
97 | </para>
|
---|
98 |
|
---|
99 | <screen><userinput>./configure --prefix=/usr \
|
---|
100 | --disable-static \
|
---|
101 | --with-installbuilddir=/usr/share/apr-1/build &&
|
---|
102 | make</userinput></screen>
|
---|
103 |
|
---|
104 | <para>
|
---|
105 | To test the results, issue: <command>make test</command>. <!-- teststr is
|
---|
106 | known to hang on some systems. - WORKS AS OF 1.6.5 (renodr) -->
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <para>
|
---|
110 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <screen role="root"><userinput>make install</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 | </sect2>
|
---|
123 |
|
---|
124 | <sect2 role="content">
|
---|
125 | <title>Contents</title>
|
---|
126 |
|
---|
127 | <segmentedlist>
|
---|
128 | <segtitle>Installed Program</segtitle>
|
---|
129 | <segtitle>Installed Library</segtitle>
|
---|
130 | <segtitle>Installed Directories</segtitle>
|
---|
131 |
|
---|
132 | <seglistitem>
|
---|
133 | <seg>
|
---|
134 | apr-1-config
|
---|
135 | </seg>
|
---|
136 | <seg>
|
---|
137 | libapr-1.so
|
---|
138 | </seg>
|
---|
139 | <seg>
|
---|
140 | /usr/include/apr-1 and
|
---|
141 | /usr/share/apr-1
|
---|
142 | </seg>
|
---|
143 | </seglistitem>
|
---|
144 | </segmentedlist>
|
---|
145 |
|
---|
146 | <variablelist>
|
---|
147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
148 | <?dbfo list-presentation="list"?>
|
---|
149 | <?dbhtml list-presentation="table"?>
|
---|
150 |
|
---|
151 | <varlistentry id="apr-1-config">
|
---|
152 | <term><command>apr-1-config</command></term>
|
---|
153 | <listitem>
|
---|
154 | <para>
|
---|
155 | is a shell script used to retrieve information about the apr
|
---|
156 | library in the system. It is typically used to compile and link
|
---|
157 | against the library
|
---|
158 | </para>
|
---|
159 | <indexterm zone="apr apr-1-config">
|
---|
160 | <primary sortas="b-apr-1-config">apr-1-config</primary>
|
---|
161 | </indexterm>
|
---|
162 | </listitem>
|
---|
163 | </varlistentry>
|
---|
164 |
|
---|
165 | <varlistentry id="libapr-1">
|
---|
166 | <term><filename class="libraryfile">libapr-1.so</filename></term>
|
---|
167 | <listitem>
|
---|
168 | <para>
|
---|
169 | is the Apache Portable Runtime library
|
---|
170 | </para>
|
---|
171 | <indexterm zone="apr libapr-1">
|
---|
172 | <primary sortas="c-libapr-1">libapr-1.so</primary>
|
---|
173 | </indexterm>
|
---|
174 | </listitem>
|
---|
175 | </varlistentry>
|
---|
176 | </variablelist>
|
---|
177 |
|
---|
178 | </sect2>
|
---|
179 |
|
---|
180 | </sect1>
|
---|