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 JS-download-http
|
---|
8 | "http://ftp.mozilla.org/pub/mozilla.org/js/mozjs&JS-version;.tar.gz">
|
---|
9 | <!ENTITY JS-download-ftp
|
---|
10 | "ftp://ftp.mozilla.org/pub/mozilla.org/js/mozjs&JS-version;.tar.gz">
|
---|
11 | <!ENTITY JS-md5sum "20b6f8f1140ef6e47daa3b16965c9202">
|
---|
12 | <!ENTITY JS-size "6.5 MB">
|
---|
13 | <!ENTITY JS-buildsize "1.2 GB">
|
---|
14 | <!ENTITY JS-time "2.0 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="JS" xreflabel="JS-&JS-version;">
|
---|
18 | <?dbhtml filename="js.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>JS-&JS-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="JS">
|
---|
28 | <primary sortas="a-JS">JS</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to JS</title>
|
---|
33 |
|
---|
34 | <para>
|
---|
35 | <application>JS</application> is Mozilla's JavaScript engine
|
---|
36 | written in C/C++.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs77_checked; &gcc5_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&JS-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&JS-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &JS-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &JS-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &JS-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &JS-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">JS Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
78 | <para role="required">
|
---|
79 | <xref linkend="libffi"/>,
|
---|
80 | <xref linkend="nspr"/>,
|
---|
81 | <xref linkend="python2"/> and
|
---|
82 | <xref linkend="zip"/>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
86 | <para role="optional">
|
---|
87 | <xref linkend="doxygen"/>
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <para condition="html" role="usernotes">User Notes:
|
---|
91 | <ulink url="&blfs-wiki;/JS"/>
|
---|
92 | </para>
|
---|
93 | </sect2>
|
---|
94 |
|
---|
95 | <sect2 role="installation">
|
---|
96 | <title>Installation of JS</title>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | Install <application>JS</application> by running the
|
---|
100 | following commands:
|
---|
101 | </para>
|
---|
102 |
|
---|
103 | <screen><userinput>cd js/src &&
|
---|
104 | ./configure --prefix=/usr \
|
---|
105 | --enable-readline \
|
---|
106 | --enable-threadsafe \
|
---|
107 | --with-system-ffi \
|
---|
108 | --with-system-nspr &&
|
---|
109 | make</userinput></screen>
|
---|
110 |
|
---|
111 | <para>
|
---|
112 | To test the results, issue: <command>make check</command>.
|
---|
113 | </para>
|
---|
114 |
|
---|
115 | <para>
|
---|
116 | Now, as the <systemitem class="username">root</systemitem>
|
---|
117 | user:
|
---|
118 | </para>
|
---|
119 |
|
---|
120 | <screen role="root"><userinput>make install &&
|
---|
121 |
|
---|
122 | find /usr/include/js-17.0/ \
|
---|
123 | /usr/lib/libmozjs-17.0.a \
|
---|
124 | /usr/lib/pkgconfig/mozjs-17.0.pc \
|
---|
125 | -type f -exec chmod -v 644 {} \;</userinput></screen>
|
---|
126 |
|
---|
127 | </sect2>
|
---|
128 |
|
---|
129 | <sect2 role="commands">
|
---|
130 | <title>Command Explanations</title>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | <option>--enable-threadsafe</option>: This switch enables
|
---|
134 | support for multiple threads.
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | <para>
|
---|
138 | <option>--enable-readline</option>: This switch enables
|
---|
139 | <application>Readline</application> support in JS shell.
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | <option>--with-system-ffi</option>: This switch forces the
|
---|
144 | package to link to the system version of <application>libffi</application>
|
---|
145 | instead of using its included, and now old, version.
|
---|
146 | </para>
|
---|
147 |
|
---|
148 | <para>
|
---|
149 | <option>--with-system-nspr</option>: This switch forces the
|
---|
150 | package to link to the system version of <application>NSPR</application>
|
---|
151 | instead of using its included, and now old, version.
|
---|
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 Directory</segtitle>
|
---|
163 |
|
---|
164 | <seglistitem>
|
---|
165 | <seg>
|
---|
166 | js17 and js17-config
|
---|
167 | </seg>
|
---|
168 | <seg>
|
---|
169 | libmozjs-17.0.a and libmozjs-17.0.so
|
---|
170 | </seg>
|
---|
171 | <seg>
|
---|
172 | /usr/include/js-17.0
|
---|
173 | </seg>
|
---|
174 | </seglistitem>
|
---|
175 | </segmentedlist>
|
---|
176 |
|
---|
177 | <variablelist>
|
---|
178 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
179 | <?dbfo list-presentation="list"?>
|
---|
180 | <?dbhtml list-presentation="table"?>
|
---|
181 |
|
---|
182 | <varlistentry id="js17">
|
---|
183 | <term><command>js17</command></term>
|
---|
184 | <listitem>
|
---|
185 | <para>
|
---|
186 | provides a command line interface to the JavaScript engine.
|
---|
187 | </para>
|
---|
188 | <indexterm zone="JS js17">
|
---|
189 | <primary sortas="b-js17">js17</primary>
|
---|
190 | </indexterm>
|
---|
191 | </listitem>
|
---|
192 | </varlistentry>
|
---|
193 |
|
---|
194 | <varlistentry id="js17-config">
|
---|
195 | <term><command>js17-config</command></term>
|
---|
196 | <listitem>
|
---|
197 | <para>
|
---|
198 | is used to find out <application>JS</application>
|
---|
199 | compiler and linker flags.
|
---|
200 | </para>
|
---|
201 | <indexterm zone="JS js17-config">
|
---|
202 | <primary sortas="b-js17-config">js17-config</primary>
|
---|
203 | </indexterm>
|
---|
204 | </listitem>
|
---|
205 | </varlistentry>
|
---|
206 |
|
---|
207 | <varlistentry id="libmozjs">
|
---|
208 | <term><filename class="libraryfile">libmozjs-17.0.so</filename></term>
|
---|
209 | <listitem>
|
---|
210 | <para>
|
---|
211 | contains the <application>Mozilla JavaScript</application> API functions.
|
---|
212 | </para>
|
---|
213 | <indexterm zone="JS libmozjs">
|
---|
214 | <primary sortas="c-libmozjs">libmozjs-17.0.so</primary>
|
---|
215 | </indexterm>
|
---|
216 | </listitem>
|
---|
217 | </varlistentry>
|
---|
218 |
|
---|
219 | </variablelist>
|
---|
220 |
|
---|
221 | </sect2>
|
---|
222 |
|
---|
223 | </sect1>
|
---|