- You need to have the js interpreter installed
- [Install autoconf-2.13] (https://gist.github.com/devopstaku/9d00722f00a09042b2ae)
- Getting the latest SpiderMonkey source code from Git
- git clone https://github.com/mozilla/gecko-dev.git
- cd gecko-dev/js/src
- autoconf-2.13 ( Note that autoconf version 2.13 is required. No later version will work.)
- mkdir build_OPT.OBJ
- cd build_OPT.OBJ
- ../configure
- make
- Execution will appear in "build_OPT.OBJ/dist/bin", (then? XD)
- curl -L http://github.com/micha/jsawk/raw/master/jsawk > jsawk
- chmod 755 jsawk && mv jsawk ~/usr/local/bin/