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