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