[0c702b61] | 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 |
|
---|
[f136bce] | 7 | <!ENTITY nghttp2-download-http "https://github.com/nghttp2/nghttp2/releases/download/v&nghttp2-version;/nghttp2-&nghttp2-version;.tar.xz">
|
---|
| 8 | <!ENTITY nghttp2-download-ftp " ">
|
---|
[2974f01] | 9 | <!ENTITY nghttp2-md5sum "30cab20160abb7981c713544d31e2d60">
|
---|
| 10 | <!ENTITY nghttp2-size "1.5 MB">
|
---|
| 11 | <!ENTITY nghttp2-buildsize "19 MB">
|
---|
| 12 | <!ENTITY nghttp2-time "less than 0.1 SBU">
|
---|
[0c702b61] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="nghttp2" xreflabel="nghttp2-&nghttp2-version;">
|
---|
| 16 | <?dbhtml filename="nghttp2.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>nghttp2-&nghttp2-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="nghttp2">
|
---|
| 22 | <primary sortas="a-nghttp2">nghttp2</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to nghttp2</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <application>nghttp2</application> is an implementation of HTTP/2 and
|
---|
| 30 | its header compression algorithm, HPACK.
|
---|
| 31 | </para>
|
---|
| 32 |
|
---|
[48cb482] | 33 | &lfs112_checked;
|
---|
[0c702b61] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&nghttp2-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
[f136bce] | 42 | <listitem>
|
---|
[0c702b61] | 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&nghttp2-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
[f136bce] | 46 | </listitem>
|
---|
[0c702b61] | 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &nghttp2-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &nghttp2-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &nghttp2-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &nghttp2-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
[7c56ece] | 68 |
|
---|
[0c702b61] | 69 | <bridgehead renderas="sect3">nghttp2 Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
| 73 | <xref linkend="libxml2"/>
|
---|
| 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
[2974f01] | 78 | The following are only used if building the full package instead of
|
---|
| 79 | only the main libraries:
|
---|
[0c702b61] | 80 | <xref linkend="boost"/>, <!--required for the C++ asio library)-->
|
---|
[e8f2aba0] | 81 | <xref linkend="c-ares"/>, <!-- required to build the HPACK tools -->
|
---|
[7b459c22] | 82 | <xref linkend="cython"/>, <!-- required to python bindings -->
|
---|
[d6d0a2cb] | 83 | <xref linkend="jansson"/>, <!-- required to build the HPACK tools -->
|
---|
[702fed4] | 84 | <xref linkend="libevent"/>, <!--required to build the examples-->
|
---|
[402910e] | 85 | <xref linkend="sphinx"/>, <!--required to build documentation-->
|
---|
[e8f2aba0] | 86 | <!--<xref linkend="python2"/>,--> <!--required for the python bindings)-->
|
---|
[d6d0a2cb] | 87 | <!-- <ulink url="http://www.digip.org/jansson/">Jansson</ulink>, <!- -required
|
---|
[0c702b61] | 88 | to build the HPACK tools-->
|
---|
[75e3e09] | 89 | <ulink url="https://jemalloc.net/">jemalloc</ulink>,
|
---|
[0c702b61] | 90 | <!--required for the example HTTP server-->
|
---|
| 91 | <ulink url="http://software.schmorp.de/pkg/libev.html">libev</ulink>,
|
---|
| 92 | <!--required to build the applications-->
|
---|
[402910e] | 93 | <ulink url="https://mruby.org/">mruby</ulink>, and
|
---|
| 94 | <!--provides ruby support in the sample HTTP server-->
|
---|
[2974f01] | 95 | <ulink url="https://tatsuhiro-t.github.io/spdylay/">Spdylay</ulink>.
|
---|
[0c702b61] | 96 | <!--provide SPDY functionality-->
|
---|
| 97 | </para>
|
---|
[2974f01] | 98 | <para role="optional">
|
---|
| 99 | <ulink url="https://cunit.sourceforge.net/">CUnit</ulink> is required if
|
---|
| 100 | you wish to run the test suite.
|
---|
| 101 | </para>
|
---|
[0c702b61] | 102 |
|
---|
| 103 | <para condition="html" role="usernotes">
|
---|
| 104 | User Notes: <ulink url="&blfs-wiki;/nghttp2"/>
|
---|
| 105 | </para>
|
---|
| 106 | </sect2>
|
---|
| 107 |
|
---|
| 108 | <sect2 role="installation">
|
---|
| 109 | <title>Installation of nghttp2</title>
|
---|
| 110 |
|
---|
| 111 | <para>
|
---|
| 112 | Install <application>nghttp2</application> by running the following
|
---|
| 113 | commands:
|
---|
| 114 | </para>
|
---|
| 115 |
|
---|
[f136bce] | 116 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 117 | --disable-static \
|
---|
| 118 | --enable-lib-only \
|
---|
| 119 | --docdir=/usr/share/doc/nghttp2-&nghttp2-version; &&
|
---|
[0c702b61] | 120 | make</userinput></screen>
|
---|
| 121 |
|
---|
| 122 | <para>
|
---|
[1450c03d] | 123 | The test suite needs CUnit, which is beyond the scope of BLFS.
|
---|
[0c702b61] | 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <para>
|
---|
| 127 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
| 130 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
| 137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 138 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 139 |
|
---|
| 140 | <para>
|
---|
| 141 | <parameter>--enable-lib-only</parameter>: only build libnghttp2. Omit
|
---|
| 142 | this switch if you'd like to build the example applications, Python
|
---|
| 143 | bindings, or the C++ asio library.
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
| 146 | </sect2>
|
---|
| 147 |
|
---|
| 148 | <sect2 role="content">
|
---|
| 149 | <title>Contents</title>
|
---|
| 150 |
|
---|
| 151 | <segmentedlist>
|
---|
| 152 | <segtitle>Installed Programs</segtitle>
|
---|
| 153 | <segtitle>Installed Libraries</segtitle>
|
---|
| 154 | <segtitle>Installed Directories</segtitle>
|
---|
| 155 |
|
---|
| 156 | <seglistitem>
|
---|
| 157 | <seg>
|
---|
| 158 | None
|
---|
| 159 | </seg>
|
---|
| 160 | <seg>
|
---|
[f136bce] | 161 | libnghttp2.so
|
---|
[0c702b61] | 162 | </seg>
|
---|
| 163 | <seg>
|
---|
[52e582c9] | 164 | /usr/include/nghttp2,
|
---|
| 165 | /usr/share/nghttp2, and
|
---|
| 166 | /usr/share/doc/nghttp2-&nghttp2-version;
|
---|
[0c702b61] | 167 | </seg>
|
---|
| 168 | </seglistitem>
|
---|
| 169 | </segmentedlist>
|
---|
| 170 |
|
---|
| 171 | <variablelist>
|
---|
| 172 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 173 | <?dbfo list-presentation="list"?>
|
---|
| 174 | <?dbhtml list-presentation="table"?>
|
---|
| 175 |
|
---|
| 176 | <varlistentry id="libnghttp2">
|
---|
[f136bce] | 177 | <term><filename class="libraryfile">libnghttp2.so</filename></term>
|
---|
[0c702b61] | 178 | <listitem>
|
---|
| 179 | <para>
|
---|
[4c24eb0a] | 180 | an implementation of the Hypertext Transfer Protocol version 2 in C
|
---|
[0c702b61] | 181 | </para>
|
---|
| 182 | <indexterm zone="nghttp2 libnghttp2">
|
---|
[f136bce] | 183 | <primary sortas="c-libnghttp2">libnghttp2.so</primary>
|
---|
[0c702b61] | 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
| 188 | </variablelist>
|
---|
| 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | </sect1>
|
---|