source: general/genlib/nodejs.xml@ 4464d405

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.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 4464d405 was 4464d405, checked in by DJ Lucas <dj@…>, 7 years ago

Add Node.js-7.9.0 and c-ares-1.12.0 (iin preparation for Chromium, EmojiOne, and iBus).

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

  • Property mode set to 100644
File size: 6.6 KB
Line 
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 nodejs-download-http "https://github.com/nodejs/node/archive/v&nodejs-version;.tar.gz">
8 <!ENTITY nodejs-download-ftp " ">
9 <!ENTITY nodejs-md5sum "cef1dc78e5e4bdeb875fce58baa10a7d">
10 <!ENTITY nodejs-size "45 MB">
11 <!ENTITY nodejs-buildsize "483 MB">
12 <!ENTITY nodejs-time "10.5 SBU">
13]>
14
15<sect1 id="nodejs" xreflabel="nodejs-&nodejs-version;">
16 <?dbhtml filename="nodejs.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy: $</othername>
20 <date>$Date: $</date>
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
38 &lfs80_checked;
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 <note>
75 <para>
76 The <application>Node.js</application> source tarball shown above
77 downloads with the correct name, node-&nodejs-version;.tar.gz,
78 if using a browser such as Firefox. If you prefer to use a command line
79 program such as wget, you normally would obtain
80 v&nodejs-version;.tar.gz. To obtain this package with the proper
81 filename, run:
82 </para>
83
84<screen><userinput>wget -c https://github.com/nodejs/node/archive/v&nodejs-version;.tar.gz \
85 -O node-&nodejs-version;.tar.gz</userinput></screen>
86
87 </note>
88
89 <bridgehead renderas="sect3">Node.js Dependencies</bridgehead>
90
91 <bridgehead renderas="sect4">Required</bridgehead>
92 <para role="required">
93 <xref linkend="python2"/>
94 </para>
95
96 <bridgehead renderas="sect4">Recommended</bridgehead>
97 <para role="recommended">
98 <xref linkend="c-ares"/>, and
99 <!-- <xref linkend="icu"/>, and -->
100 <xref linkend="openssl"/>
101 </para>
102
103 <bridgehead renderas="sect4">Optional</bridgehead>
104 <para role="optional">
105 <xref linkend="icu"/> (currently broken),
106 <ulink url="https://github.com/nodejs/http-parser">http-parser</ulink>,
107 <ulink url="https://github.com/libuv/libuv">libuv</ulink>, and
108 <ulink url="https://www.npmjs.com/">npm</ulink>, (internal versions of
109 these packages will be used if they are not present)
110 </para>
111
112 <para condition="html" role="usernotes">
113 User Notes: <ulink url="&blfs-wiki;/nodejs"/>
114 </para>
115
116 </sect2>
117
118 <sect2 role="installation">
119 <title>Installation of Node.js</title>
120
121 <para>
122 Build <application>Node.js</application> by running the following
123 commands:
124 </para>
125
126<screen><userinput>./configure --prefix=/usr \
127 --shared-cares \
128 --shared-openssl \
129 --shared-zlib \
130 --with-intl=icu-small &amp;&amp;
131make</userinput></screen>
132
133 <para>This package does not come with a test suite.</para>
134
135 <para>
136 Now, as the <systemitem class="username">root</systemitem> user:
137 </para>
138
139<screen role="root"><userinput>make install &amp;&amp;
140ln -sf node /usr/share/doc/node-&nodejs-version;</userinput></screen>
141 </sect2>
142
143 <sect2 role="commands">
144 <title>Command Explanations</title>
145
146 <para><parameter>--with-intl=icu-small</parameter>: build a local, but
147 small copy of <application>icu</application>. Other values are
148 <option>icu-full</option> (to build a full <application>icu</application>
149 library) and <option>system-icu</option> (to use the system
150 <application>icu</application>).</para>
151
152 <para><parameter>--shared-{cares,openssl,zlib}</parameter>: use the system
153 installed libraries instead of local copies.</para>
154
155 <para><option>--without-npm</option>: do not build
156 <application>npm</application> (use if you'd like to build a separate
157 <application>npm</application> later).</para>
158
159 <para><option>--shared-{http-parser,libuv}</option>: use the system
160 installed libraries instead of local copies.</para>
161
162 </sect2>
163
164 <sect2 role="content">
165 <title>Contents</title>
166
167 <segmentedlist>
168 <segtitle>Installed Programs</segtitle>
169 <segtitle>Installed Library</segtitle>
170 <segtitle>Installed Directories</segtitle>
171
172 <seglistitem>
173 <seg>
174 /usr/bin/node and /usr/bin/npm
175 </seg>
176 <seg>
177 None
178 </seg>
179 <seg>
180 /usr/lib/node_modules/npm/
181 </seg>
182 </seglistitem>
183 </segmentedlist>
184
185 <variablelist>
186 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
187 <?dbfo list-presentation="list"?>
188 <?dbhtml list-presentation="table"?>
189
190 <varlistentry id="node">
191 <term><command>node</command></term>
192 <listitem>
193 <para>
194 is the server-side JavaScript runtime.
195 </para>
196 <indexterm zone="nodejs node">
197 <primary sortas="b-node">node</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 <varlistentry id="npm">
203 <term><command>npm</command></term>
204 <listitem>
205 <para>
206 is the <application>Node.js</application> package manager.
207 </para>
208 <indexterm zone="nodejs npm">
209 <primary sortas="b-npm">npm</primary>
210 </indexterm>
211 </listitem>
212 </varlistentry>
213
214 <varlistentry>
215 <term><filename class='directory'>/usr/lib/node_modules/npm/</filename></term>
216 <listitem>
217 <para>is the installaton root for Node.js executables and
218 libraries.</para>
219 </listitem>
220 </varlistentry>
221
222 </variablelist>
223
224 </sect2>
225
226</sect1>
Note: See TracBrowser for help on using the repository browser.