Running V8 Javascript Engine Standalone - Stack Overflow: "Updated instructions to build the developer console, rather than the example 'shell' toy application.
These instructions will work for Ubuntu/Debian. For other distributions, you will need to replace the apt-get command with whatever package tool you have available.
sudo apt-get install subversion scons libreadline-dev
svn co http://v8.googlecode.com/svn/trunk v8
cd v8/
scons console=readline d8"
'via Blog this'