-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
34 lines (24 loc) · 958 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
How to install JavaScript::SpiderMonkey
Get the latest SpiderMonkey distribution from mozilla.org:
http://ftp.mozilla.org/pub/spidermonkey/releases shows which releases are available.
http://ftp.mozilla.org/pub/spidermonkey/releases/1.6.0/js-1.60.tar.gz has been proven to work.
Untar it at the same directory level as the distribution of the
JavaScript::SpiderMonkey perl module distribution whichs README
you're currently reading:
cd ..
tar zxfv js-1.60.tar.gz
It's important that the js and JavaScript-SpiderMonkey-v.vv directories
are at the same level:
$ls
JavaScript-SpiderMonkey-0.XX
js
js-1.60.tar.gz
Alternatively, specify the location of the library on the command line
to Makefile.PL using the --js_lib_dir and --js_lib_name options:
perl Makefile.PL --js_lib_dir /path/to/library/ --js_lib_name js
Next, build JavaScript::SpiderMonkey in the standard way:
cd JavaScript-SpiderMonkey-0.XX
perl Makefile.PL
gmake
gmake test
gmake install