source: general/genlib/nodejs.xml@ e2011d1

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since e2011d1 was e2011d1, checked in by DJ Lucas <dj@…>, 7 years ago

Update to node.js-8.6.0. Fixes #9756.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@19301 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 6.1 KB
RevLine 
[4464d405]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
[2d4d59a]7 <!ENTITY nodejs-download-http "https://nodejs.org/dist/v&nodejs-version;/node-v&nodejs-version;.tar.xz">
[4464d405]8 <!ENTITY nodejs-download-ftp " ">
[e2011d1]9 <!ENTITY nodejs-md5sum "e729aa13d06c35301150de6a876607fb">
[f02583f]10 <!ENTITY nodejs-size "18 MB">
[e2011d1]11 <!ENTITY nodejs-buildsize "379 MB">
12 <!ENTITY nodejs-time "11.4 SBU">
[4464d405]13]>
14
15<sect1 id="nodejs" xreflabel="nodejs-&nodejs-version;">
16 <?dbhtml filename="nodejs.html"?>
17
18 <sect1info>
[542d478]19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
[4464d405]21 </sect1info>
22
23 <title>Node.js-&nodejs-version;</title>
24
25 <indexterm zone="nodejs">
26 <primary sortas="a-nodejs">nodejs</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Node.js</title>
31
32 <para>
33 <application>Node.js</application> is a
34 <application>JavaScript</application> runtime built on
35 <application>Chrome's</application> V8 JavaScript engine.
36 </para>
37
[16d7daf]38 &lfs81_checked;
[4464d405]39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&nodejs-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&nodejs-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &nodejs-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &nodejs-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &nodejs-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &nodejs-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">Node.js Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required">
78 <xref linkend="python2"/>
79 </para>
80
81 <bridgehead renderas="sect4">Recommended</bridgehead>
82 <para role="recommended">
[d4e87a67]83 <xref linkend="c-ares"/>,
84 <xref linkend="icu"/>, and
[a4f37269]85 <xref linkend="openssl10"/>
[4464d405]86 </para>
87
88 <bridgehead renderas="sect4">Optional</bridgehead>
89 <para role="optional">
90 <ulink url="https://github.com/nodejs/http-parser">http-parser</ulink>,
91 <ulink url="https://github.com/libuv/libuv">libuv</ulink>, and
[f02583f]92 <ulink url="https://www.npmjs.com/">npm</ulink> (an internal copy of
93 <command>npm</command> will be installed if not present)
[4464d405]94 </para>
95
96 <para condition="html" role="usernotes">
97 User Notes: <ulink url="&blfs-wiki;/nodejs"/>
98 </para>
99
100 </sect2>
101
102 <sect2 role="installation">
103 <title>Installation of Node.js</title>
104
105 <para>
106 Build <application>Node.js</application> by running the following
107 commands:
108 </para>
109
[a4f37269]110<screen><userinput>PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig \
111 ./configure --prefix=/usr \
112 --shared-cares \
113 --shared-openssl \
114 --shared-zlib \
115 --with-intl=system-icu &amp;&amp;
[4464d405]116make</userinput></screen>
117
118 <para>This package does not come with a test suite.</para>
119
120 <para>
121 Now, as the <systemitem class="username">root</systemitem> user:
122 </para>
123
124<screen role="root"><userinput>make install &amp;&amp;
125ln -sf node /usr/share/doc/node-&nodejs-version;</userinput></screen>
126 </sect2>
127
128 <sect2 role="commands">
129 <title>Command Explanations</title>
130
[d4e87a67]131 <para><parameter>--with-intl=system-icu</parameter>: use the system version
132 of <application>icu</application>. Other values are
133 <option>full-icu</option> (to build a local, full
134 <application>icu</application> library) and <option>small-icu</option> (to
135 to build a local, minimal <application>icu</application> library).</para>
[4464d405]136
137 <para><parameter>--shared-{cares,openssl,zlib}</parameter>: use the system
138 installed libraries instead of local copies.</para>
139
140 <para><option>--without-npm</option>: do not build
141 <application>npm</application> (use if you'd like to build a separate
142 <application>npm</application> later).</para>
143
144 <para><option>--shared-{http-parser,libuv}</option>: use the system
145 installed libraries instead of local copies.</para>
146
147 </sect2>
148
149 <sect2 role="content">
150 <title>Contents</title>
151
152 <segmentedlist>
153 <segtitle>Installed Programs</segtitle>
154 <segtitle>Installed Library</segtitle>
155 <segtitle>Installed Directories</segtitle>
156
157 <seglistitem>
158 <seg>
159 /usr/bin/node and /usr/bin/npm
160 </seg>
161 <seg>
162 None
163 </seg>
164 <seg>
165 /usr/lib/node_modules/npm/
166 </seg>
167 </seglistitem>
168 </segmentedlist>
169
170 <variablelist>
171 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
172 <?dbfo list-presentation="list"?>
173 <?dbhtml list-presentation="table"?>
174
175 <varlistentry id="node">
176 <term><command>node</command></term>
177 <listitem>
178 <para>
179 is the server-side JavaScript runtime.
180 </para>
181 <indexterm zone="nodejs node">
182 <primary sortas="b-node">node</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="npm">
188 <term><command>npm</command></term>
189 <listitem>
190 <para>
191 is the <application>Node.js</application> package manager.
192 </para>
193 <indexterm zone="nodejs npm">
194 <primary sortas="b-npm">npm</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 <varlistentry>
200 <term><filename class='directory'>/usr/lib/node_modules/npm/</filename></term>
201 <listitem>
[542d478]202 <para>is the installation root for Node.js executables and
[4464d405]203 libraries.</para>
204 </listitem>
205 </varlistentry>
206
207 </variablelist>
208
209 </sect2>
210
211</sect1>
Note: See TracBrowser for help on using the repository browser.