spidermonkey
This is an old revision of the document!
Spidermonkey
Spidermonkey (libjs) is the Javascript engine used my Mozilla. JavaScript::SpiderMonkey (JS::SM) is the Perl wrapper for libjs.
Installation
- Remove any existing libjs and JS::SM from your system.
- Get libjs 1.6 (js-1.60.tar.gz) or greater from: Mozilla
- unpack the source bundle
- cd js/src && make -f Makefile.ref
- Installing libjs in a well-known directory is not required if all you need is JS::SM. JS::SM will link directly to the libraries found in js/src/Linux_All_DBG.OBJ/. However, if you do wish to install libjs from this build, it will be necessary to manually copy libjs.so, libjs.a (and header files if desired) to a well-known directory. (e.g. /usr/lib and /usr/include)
- Install JS::SM version 0.17 by hand
- Get JS::SM source from CPAN.
- Unpack JS::SM in the same top-level directory where the "js" directory lives and build:
- perl Makefile.PL -E4X && make && make install
spidermonkey.1178727453.txt.gz · Last modified: 2022/02/10 13:33 (external edit)