javascript - Best way to get spidermonkey js on Ubuntu? -
javascript - Best way to get spidermonkey js on Ubuntu? -
i need install spidermonkey js engine on work machine. project i'm working on has jslint script requires spidermonkey or similar js binary. i've tried compiling spidermonkey source , gotten stuck in dependency hell. tried installing rhino bundle ubuntu repositories, , turned out slow , broken. morning, compiled google's v8 engine , built v8jslint next instructions here:
http://blog.stevenreid.co.uk/2011/06/27/jslint-command-line-tool-powered-by-v8/
v8jslint works, lint 1 file @ time. instance,
$ v8jslint foo/*.js if have a.js, b.js , c.js under foo, v8jslint lint a.js. easy fix: write bash script this. bigger problem v8jslint not compatible spidermonkey jslint on our build server. has had success building spidermonkey on recent version of ubuntu, or know workaround?
fixed it. need 'autoconf2.13' package. install apt-get. go spidermonkey source code page on mozilla. find hg repository (linked below) , download snapshot of mozilla tree. don't clone it, archive .tar.gz or .tar.bz2 top bar.
http://hg.mozilla.org/index.cgi/mozilla-central/file/tip
unzip archive , cd root directory.
$ cd js/src $ autoconf2.13 $ ./configure $ create this should create binary called js. reason, when ran create install, did not re-create js /bin/. symlinked /bin/js point ~/.../mozilla/js/src/js. lint scripts work , don't have start build prepare lint errors anymore :p
source:
https://developer.mozilla.org/en/spidermonkey_build_documentation
note: above link calls command autoconf-2.13. think typo; want utilize autoconf2.13 wrote in code.
javascript ubuntu spidermonkey
Comments
Post a Comment