[6eb166fa] | 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 |
|
---|
[c92ba3b] | 7 | <!ENTITY libuv-download-http "https://dist.libuv.org/dist/v&libuv-version;/libuv-v&libuv-version;.tar.gz">
|
---|
[6eb166fa] | 8 | <!ENTITY libuv-download-ftp " ">
|
---|
[64f69a2] | 9 | <!ENTITY libuv-md5sum "0addbddcb1098e2c1c99f03f0108e1e7">
|
---|
[b905a81] | 10 | <!ENTITY libuv-size "1.2 MB">
|
---|
[9594c39c] | 11 | <!ENTITY libuv-buildsize "14 MB (add 13 MB for tests)">
|
---|
[384f06b] | 12 | <!ENTITY libuv-time "0.1 SBU (add 0.5 SBU for tests)">
|
---|
[6eb166fa] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libuv" xreflabel="libuv-&libuv-version;">
|
---|
| 16 | <?dbhtml filename="libuv.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>libuv-&libuv-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="libuv">
|
---|
| 22 | <primary sortas="a-libuv">libuv</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to libuv</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
[8558044] | 29 | The <application>libuv</application> package is a
|
---|
[ac4d403] | 30 | multi-platform support library with a focus on asynchronous I/O.
|
---|
[6eb166fa] | 31 | </para>
|
---|
| 32 |
|
---|
[9c87711] | 33 | &lfs113_checked;
|
---|
[6eb166fa] | 34 |
|
---|
| 35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 36 | <itemizedlist spacing="compact">
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>
|
---|
| 39 | Download (HTTP): <ulink url="&libuv-download-http;"/>
|
---|
| 40 | </para>
|
---|
| 41 | </listitem>
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>
|
---|
| 44 | Download (FTP): <ulink url="&libuv-download-ftp;"/>
|
---|
| 45 | </para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>
|
---|
| 49 | Download MD5 sum: &libuv-md5sum;
|
---|
| 50 | </para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>
|
---|
| 54 | Download size: &libuv-size;
|
---|
| 55 | </para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>
|
---|
| 59 | Estimated disk space required: &libuv-buildsize;
|
---|
| 60 | </para>
|
---|
| 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Estimated build time: &libuv-time;
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | </itemizedlist>
|
---|
| 68 | <!--
|
---|
| 69 | <bridgehead renderas="sect3">libuv Dependencies</bridgehead>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 72 | <para role="required">
|
---|
[8558044] | 73 | <xref linkend="???"/>
|
---|
[6eb166fa] | 74 | </para>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 77 | <para role="optional">
|
---|
| 78 | <xref linkend="???"/>
|
---|
| 79 | </para>
|
---|
| 80 | -->
|
---|
| 81 | <para condition="html" role="usernotes">User Notes:
|
---|
| 82 | <ulink url="&blfs-wiki;/libuv"/>
|
---|
| 83 | </para>
|
---|
| 84 | </sect2>
|
---|
| 85 |
|
---|
| 86 | <sect2 role="installation">
|
---|
| 87 | <title>Installation of libuv</title>
|
---|
| 88 |
|
---|
| 89 | <para>
|
---|
| 90 | Install <application>libuv</application> by running the following
|
---|
| 91 | commands:
|
---|
| 92 | </para>
|
---|
[e05831c9] | 93 |
|
---|
| 94 | <caution>
|
---|
| 95 | <para>
|
---|
| 96 | The <command>sh autogen.sh</command> command below fails if the ACLOCAL
|
---|
| 97 | environment variable is set as specified in <xref linkend="xorg7"/>.
|
---|
| 98 | If it is used, ACLOCAL needs to be unset for this package and then
|
---|
| 99 | reset for other packages.
|
---|
| 100 | </para>
|
---|
| 101 | </caution>
|
---|
| 102 |
|
---|
[a1b1e9d4] | 103 | <!--
|
---|
| 104 | Don't use cmake here to avoid circular dependency
|
---|
[6eb166fa] | 105 |
|
---|
[fe80e96] | 106 | <screen><userinput>sed -i "/TARGETS uv_a ARCHIVE/d" CMakeLists.txt &&
|
---|
| 107 |
|
---|
| 108 | mkdir build &&
|
---|
| 109 | cd build &&
|
---|
| 110 |
|
---|
| 111 | cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
|
---|
[a1b1e9d4] | 112 | make </userinput></screen>
|
---|
| 113 | -->
|
---|
| 114 |
|
---|
| 115 | <screen><userinput>sh autogen.sh &&
|
---|
| 116 | ./configure --prefix=/usr --disable-static &&
|
---|
[fe80e96] | 117 | make </userinput></screen>
|
---|
[e3885b4] | 118 | <!--
|
---|
[6eb166fa] | 119 | <para>
|
---|
[fe80e96] | 120 | If you want to run the tests, add -DBUILD_TESTING=true to
|
---|
[8558044] | 121 | the cmake line above and after building run:
|
---|
[fe80e96] | 122 | <command>make test</command>.
|
---|
[6eb166fa] | 123 | </para>
|
---|
[e3885b4] | 124 | -->
|
---|
| 125 | <para>
|
---|
[9c7363e] | 126 | If you want to run the tests, run: <command>make check</command> as
|
---|
| 127 | a non-root user. <!-- the test suite refuses to run as root -->
|
---|
[e3885b4] | 128 | </para>
|
---|
[6eb166fa] | 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
[a1b1e9d4] | 137 | <!--
|
---|
[6eb166fa] | 138 | <sect2 role="commands">
|
---|
| 139 | <title>Command Explanations</title>
|
---|
| 140 |
|
---|
[fe80e96] | 141 | <para>
|
---|
| 142 | <command>sed ...</command>: This command disables installation
|
---|
| 143 | of the static library.
|
---|
| 144 | </para>
|
---|
[8558044] | 145 |
|
---|
[6eb166fa] | 146 | </sect2>
|
---|
[a1b1e9d4] | 147 | -->
|
---|
[6eb166fa] | 148 | <sect2 role="content">
|
---|
| 149 | <title>Contents</title>
|
---|
| 150 |
|
---|
| 151 | <segmentedlist>
|
---|
| 152 | <segtitle>Installed Programs</segtitle>
|
---|
| 153 | <segtitle>Installed Library</segtitle>
|
---|
[5a66d6ac] | 154 | <segtitle>Installed Directory</segtitle>
|
---|
[6eb166fa] | 155 |
|
---|
| 156 | <seglistitem>
|
---|
| 157 | <seg>
|
---|
| 158 | None
|
---|
| 159 | </seg>
|
---|
| 160 | <seg>
|
---|
| 161 | libuv.so
|
---|
| 162 | </seg>
|
---|
| 163 | <seg>
|
---|
[5a66d6ac] | 164 | /usr/include/uv
|
---|
[6eb166fa] | 165 | </seg>
|
---|
| 166 | </seglistitem>
|
---|
| 167 | </segmentedlist>
|
---|
[5a66d6ac] | 168 |
|
---|
[6eb166fa] | 169 | <variablelist>
|
---|
| 170 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 171 | <?dbfo list-presentation="list"?>
|
---|
| 172 | <?dbhtml list-presentation="table"?>
|
---|
| 173 |
|
---|
| 174 | <varlistentry id="libuv.so">
|
---|
| 175 | <term><filename class="libraryfile">libuv.so</filename></term>
|
---|
| 176 | <listitem>
|
---|
| 177 | <para>
|
---|
[5a66d6ac] | 178 | contains API functions for asynchronous I/O operations
|
---|
[6eb166fa] | 179 | </para>
|
---|
| 180 | <indexterm zone="libuv libuv.so">
|
---|
| 181 | <primary sortas="c-libuv.so">libuv.so</primary>
|
---|
| 182 | </indexterm>
|
---|
| 183 | </listitem>
|
---|
| 184 | </varlistentry>
|
---|
| 185 |
|
---|
| 186 | </variablelist>
|
---|
[5a66d6ac] | 187 |
|
---|
[6eb166fa] | 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | </sect1>
|
---|