[6e10fa6] | 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
|
---|
[8dfc5c3] | 8 | "https://archive.apache.org/dist/apr/apr-&apr-version;.tar.bz2">
|
---|
[6e10fa6] | 9 | <!ENTITY apr-download-ftp
|
---|
[adf6dd9a] | 10 | "ftp://ftp.mirrorservice.org/sites/ftp.apache.org/apr/apr-&apr-version;.tar.bz2">
|
---|
[0e272f87] | 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)">
|
---|
[6e10fa6] | 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">
|
---|
[d551456] | 28 | <title>Introduction to Apr</title>
|
---|
[6e10fa6] | 29 |
|
---|
[d551456] | 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>
|
---|
[6e10fa6] | 38 |
|
---|
[8b225938] | 39 | &lfs112_checked;
|
---|
[6e10fa6] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[d551456] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&apr-download-http;"/>
|
---|
| 46 | </para>
|
---|
[6e10fa6] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[d551456] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&apr-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[6e10fa6] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[d551456] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &apr-md5sum;
|
---|
| 56 | </para>
|
---|
[6e10fa6] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[d551456] | 59 | <para>
|
---|
| 60 | Download size: &apr-size;
|
---|
| 61 | </para>
|
---|
[6e10fa6] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[d551456] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &apr-buildsize;
|
---|
| 66 | </para>
|
---|
[6e10fa6] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[d551456] | 69 | <para>
|
---|
| 70 | Estimated build time: &apr-time;
|
---|
| 71 | </para>
|
---|
[6e10fa6] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[d551456] | 75 | <para condition="html" role="usernotes">
|
---|
| 76 | User Notes: <ulink url="&blfs-wiki;/apr"/>
|
---|
| 77 | </para>
|
---|
[6e10fa6] | 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
[d551456] | 81 | <title>Installation of Apr</title>
|
---|
[6e10fa6] | 82 |
|
---|
[a541e080] | 83 | <para>
|
---|
| 84 | First, fix a security issue:
|
---|
| 85 | </para>
|
---|
[9d154616] | 86 | <!--
|
---|
[a541e080] | 87 | <screen><userinput>sed '/{306/a \
|
---|
| 88 | \
|
---|
| 89 | if (xt->tm_mon < 0 || xt->tm_mon >= 12) \
|
---|
| 90 | return APR_EBADDATE;' -i time/unix/time.c</userinput></screen>
|
---|
[9d154616] | 91 | -->
|
---|
| 92 | <screen><userinput>sed -e "/shift/i \
|
---|
[4021e181] | 93 | \ if (xt->tm_mon < 0 || xt->tm_mon >= 12) return APR_EBADDATE;" \
|
---|
[9d154616] | 94 | -i time/unix/time.c</userinput></screen>
|
---|
[a541e080] | 95 |
|
---|
[d551456] | 96 | <para>
|
---|
| 97 | Install <application>Apr</application> by running the following commands:
|
---|
| 98 | </para>
|
---|
[6e10fa6] | 99 |
|
---|
[92245989] | 100 | <screen><userinput>./configure --prefix=/usr \
|
---|
[adf6dd9a] | 101 | --disable-static \
|
---|
| 102 | --with-installbuilddir=/usr/share/apr-1/build &&
|
---|
[6e10fa6] | 103 | make</userinput></screen>
|
---|
| 104 |
|
---|
[d551456] | 105 | <para>
|
---|
[0d38b000] | 106 | To test the results, issue: <command>make test</command>. <!-- teststr is
|
---|
| 107 | known to hang on some systems. - WORKS AS OF 1.6.5 (renodr) -->
|
---|
[d551456] | 108 | </para>
|
---|
[6e10fa6] | 109 |
|
---|
[d551456] | 110 | <para>
|
---|
| 111 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 112 | </para>
|
---|
[6e10fa6] | 113 |
|
---|
| 114 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="commands">
|
---|
| 118 | <title>Command Explanations</title>
|
---|
| 119 |
|
---|
[adf6dd9a] | 120 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 121 | href="../../xincludes/static-libraries.xml"/>
|
---|
[6e10fa6] | 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2 role="content">
|
---|
| 126 | <title>Contents</title>
|
---|
| 127 |
|
---|
| 128 | <segmentedlist>
|
---|
| 129 | <segtitle>Installed Program</segtitle>
|
---|
| 130 | <segtitle>Installed Library</segtitle>
|
---|
| 131 | <segtitle>Installed Directories</segtitle>
|
---|
| 132 |
|
---|
| 133 | <seglistitem>
|
---|
[adf6dd9a] | 134 | <seg>
|
---|
| 135 | apr-1-config
|
---|
| 136 | </seg>
|
---|
| 137 | <seg>
|
---|
| 138 | libapr-1.so
|
---|
| 139 | </seg>
|
---|
| 140 | <seg>
|
---|
[f3429309] | 141 | /usr/include/apr-1 and
|
---|
[adf6dd9a] | 142 | /usr/share/apr-1
|
---|
| 143 | </seg>
|
---|
[6e10fa6] | 144 | </seglistitem>
|
---|
| 145 | </segmentedlist>
|
---|
| 146 |
|
---|
| 147 | <variablelist>
|
---|
| 148 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 149 | <?dbfo list-presentation="list"?>
|
---|
| 150 | <?dbhtml list-presentation="table"?>
|
---|
| 151 |
|
---|
| 152 | <varlistentry id="apr-1-config">
|
---|
| 153 | <term><command>apr-1-config</command></term>
|
---|
| 154 | <listitem>
|
---|
| 155 | <para>
|
---|
| 156 | is a shell script used to retrieve information about the apr
|
---|
| 157 | library in the system. It is typically used to compile and link
|
---|
[4c24eb0a] | 158 | against the library
|
---|
[d551456] | 159 | </para>
|
---|
[6e10fa6] | 160 | <indexterm zone="apr apr-1-config">
|
---|
| 161 | <primary sortas="b-apr-1-config">apr-1-config</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 | </listitem>
|
---|
| 164 | </varlistentry>
|
---|
| 165 |
|
---|
| 166 | <varlistentry id="libapr-1">
|
---|
| 167 | <term><filename class="libraryfile">libapr-1.so</filename></term>
|
---|
| 168 | <listitem>
|
---|
[d551456] | 169 | <para>
|
---|
[4c24eb0a] | 170 | is the Apache Portable Runtime library
|
---|
[d551456] | 171 | </para>
|
---|
[6e10fa6] | 172 | <indexterm zone="apr libapr-1">
|
---|
| 173 | <primary sortas="c-libapr-1">libapr-1.so</primary>
|
---|
| 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 | </variablelist>
|
---|
[adf6dd9a] | 178 |
|
---|
[6e10fa6] | 179 | </sect2>
|
---|
[4c24eb0a] | 180 |
|
---|
[6e10fa6] | 181 | </sect1>
|
---|