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 nghttp2-download-http "https://github.com/nghttp2/nghttp2/releases/download/v&nghttp2-version;/nghttp2-&nghttp2-version;.tar.xz">
|
---|
8 | <!ENTITY nghttp2-download-ftp " ">
|
---|
9 | <!ENTITY nghttp2-md5sum "c1d607bf3830000acd7a51f0058f4bd2">
|
---|
10 | <!ENTITY nghttp2-size "3.8 MB">
|
---|
11 | <!ENTITY nghttp2-buildsize "23 MB">
|
---|
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 |
|
---|
37 | &lfs10_checked;
|
---|
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>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&nghttp2-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
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>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">nghttp2 Dependencies</bridgehead>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
76 | <para role="required">
|
---|
77 | <xref linkend="libxml2"/>
|
---|
78 | </para>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
81 | <para role="optional">
|
---|
82 | <xref linkend="boost"/>, <!--required for the C++ asio library)-->
|
---|
83 | <xref linkend="c-ares"/>, <!-- required to build the HPACK tools -->
|
---|
84 | <xref linkend="jansson"/>, <!-- required to build the HPACK tools -->
|
---|
85 | <xref linkend="libevent"/>, <!--required to build the examples-->
|
---|
86 | <!--<xref linkend="python2"/>,--> <!--required for the python bindings)-->
|
---|
87 | <!--- <phrase revision="systemd">
|
---|
88 | <xref linkend="setuptools"/>, <!- -(required for the python bindings- ->
|
---|
89 | </phrase> -->
|
---|
90 | <ulink url="http://cunit.sourceforge.net/">CUnit</ulink> (required for
|
---|
91 | the testsuite),
|
---|
92 | <ulink url="http://cython.org/">Cython</ulink>, <!--required for the
|
---|
93 | python bindings-->
|
---|
94 | <!-- <ulink url="http://www.digip.org/jansson/">Jansson</ulink>, <!- -required
|
---|
95 | to build the HPACK tools-->
|
---|
96 | <ulink url="http://jemalloc.net/">jemalloc</ulink>,
|
---|
97 | <!--required for the example HTTP server-->
|
---|
98 | <ulink url="http://software.schmorp.de/pkg/libev.html">libev</ulink>,
|
---|
99 | <!--required to build the applications-->
|
---|
100 | <ulink url="https://mruby.org/">mruby</ulink>, <!--provides ruby support
|
---|
101 | in the sample HTTP server-->
|
---|
102 | <!-- <phrase revision="sysv">
|
---|
103 | <ulink url="https://pypi.python.org/pypi/setuptools/">Setuptools</ulink>,
|
---|
104 | </phrase> -->
|
---|
105 | <ulink url="https://tatsuhiro-t.github.io/spdylay/">Spdylay</ulink>, and
|
---|
106 | <!--provide SPDY functionality-->
|
---|
107 | <ulink url="http://sphinx-doc.org/">Sphinx</ulink>. <!--required to build
|
---|
108 | documentation-->
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <para condition="html" role="usernotes">
|
---|
112 | User Notes: <ulink url="&blfs-wiki;/nghttp2"/>
|
---|
113 | </para>
|
---|
114 | </sect2>
|
---|
115 |
|
---|
116 | <sect2 role="installation">
|
---|
117 | <title>Installation of nghttp2</title>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | Install <application>nghttp2</application> by running the following
|
---|
121 | commands:
|
---|
122 | </para>
|
---|
123 |
|
---|
124 | <screen><userinput>./configure --prefix=/usr \
|
---|
125 | --disable-static \
|
---|
126 | --enable-lib-only \
|
---|
127 | --docdir=/usr/share/doc/nghttp2-&nghttp2-version; &&
|
---|
128 | make</userinput></screen>
|
---|
129 |
|
---|
130 | <para>
|
---|
131 | This package does not come with a usable test suite.
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <para>
|
---|
135 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
139 |
|
---|
140 | </sect2>
|
---|
141 |
|
---|
142 | <sect2 role="commands">
|
---|
143 | <title>Command Explanations</title>
|
---|
144 |
|
---|
145 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
146 | href="../../xincludes/static-libraries.xml"/>
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | <parameter>--enable-lib-only</parameter>: only build libnghttp2. Omit
|
---|
150 | this switch if you'd like to build the example applications, Python
|
---|
151 | bindings, or the C++ asio library.
|
---|
152 | </para>
|
---|
153 |
|
---|
154 | </sect2>
|
---|
155 |
|
---|
156 | <sect2 role="content">
|
---|
157 | <title>Contents</title>
|
---|
158 |
|
---|
159 | <segmentedlist>
|
---|
160 | <segtitle>Installed Programs</segtitle>
|
---|
161 | <segtitle>Installed Libraries</segtitle>
|
---|
162 | <segtitle>Installed Directories</segtitle>
|
---|
163 |
|
---|
164 | <seglistitem>
|
---|
165 | <seg>
|
---|
166 | None
|
---|
167 | </seg>
|
---|
168 | <seg>
|
---|
169 | libnghttp2.so
|
---|
170 | </seg>
|
---|
171 | <seg>
|
---|
172 | /usr/include/nghttp2,
|
---|
173 | /usr/share/nghttp2, and
|
---|
174 | /usr/share/doc/nghttp2-&nghttp2-version;
|
---|
175 | </seg>
|
---|
176 | </seglistitem>
|
---|
177 | </segmentedlist>
|
---|
178 |
|
---|
179 | <variablelist>
|
---|
180 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
181 | <?dbfo list-presentation="list"?>
|
---|
182 | <?dbhtml list-presentation="table"?>
|
---|
183 |
|
---|
184 | <varlistentry id="libnghttp2">
|
---|
185 | <term><filename class="libraryfile">libnghttp2.so</filename></term>
|
---|
186 | <listitem>
|
---|
187 | <para>
|
---|
188 | an implementation of the Hypertext Transfer Protocol version 2 in C.
|
---|
189 | </para>
|
---|
190 | <indexterm zone="nghttp2 libnghttp2">
|
---|
191 | <primary sortas="c-libnghttp2">libnghttp2.so</primary>
|
---|
192 | </indexterm>
|
---|
193 | </listitem>
|
---|
194 | </varlistentry>
|
---|
195 |
|
---|
196 | </variablelist>
|
---|
197 |
|
---|
198 | </sect2>
|
---|
199 |
|
---|
200 | </sect1>
|
---|