See V8 issue 413 if you are having trouble on gcc 4.4.1.
svn checkout http://v8.googlecode.com/svn/trunk/ v8 cd v8 scons library=shared sudo mv include/v8.h /usr/local/include/ sudo mv libv8.so /usr/local/lib/
If you're using a 64-bit architecture, you need to include
arch=x64 when running scons:
scons library=shared arch=x64
Otherwise, perl will complain when trying to link/load v8. For more information, see V8 issue 330.
On OS X I've successfully used Homebrew, install Homebrew then:
brew install v8
On Ubuntu 10.04 (and possibly Debian), the library and header files can be installed by running:
sudo aptitude install libv8-2.0.3 libv8-dev
Similar packages may be available for other distributions (adjust the package names accordingly).
Pawel Murias <pawelmurias at gmail dot com> David Leadbeater <firstname.lastname@example.org> Paul Driver <frodwith at gmail dot com>
Copyright (c) 2009-2010 Paweł Murias Copyright (c) 2011 David Leadbeater
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
For salvaging the code of V8.pm from a message board (which I took some code and the idea from)