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