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