12

I'm trying to get Vim JS lint plugin working under Ubuntu 12.04. The plugin requires the d8 command, which is an executable version of Google's v8 JavaScript Engine.

I do see a libv8 package, but that doesn't seem to either install d8 or at least, not put it on my path. The package is described as

libv8-3.7.12.22 - v8 JavaScript engine - runtime library

Is there any package that will install an executable version of the v8 engine, or do I just have to build it manually?

3 Answers3

7

I am going to take the lack of answers as a no.

It is not difficult to make and install v8 from Google's SVN repo.

All you need to do is check it out and make it.

svn checkout http://v8.googlecode.com/svn/trunk/ ./v8
cd v8
make builddeps
make native

Then inside the out/native directory there will be d8 binary, I just symlinked this to my /usr/local/bin.

1

This might help (it works on Debian):

12:38 ~ $ apt-cache search libv8;
libv8-3.8.9.20 - v8 JavaScript engine - runtime library
libv8-dbg - v8 JavaScript engine - debugging symbols
libv8-dev - v8 JavaScript engine - development files
libv8-i18n-dev - Native internationalization extension for libv8 - development files
libv8-i18n0.0.0 - Native internationalization extension for libv8 - runtime library
libv8-i18n0.0.0-dbg - Native internationalization extension for libv8 - debugging symbols

and choose one such as

12:39 ~ $ apt-get install libv8-3.8.9.20
belacqua
  • 23,540
relipse
  • 119
0

Check out node-webkit, it works with major operating systems (Linux, Windows, Mac) - it's an app engine made from chromium and node.js.

CoryG
  • 1