开发者

Google V8 Javascript Engine, Ubuntu and PHP - how to get it built and working?

some help would be much appreciated here.

I am running Ubuntu 10.04, I want to use the V8 Javacript engine inside PHP. Has anyone managed to do this yet?

So I installed libv8-2.0.3, libv8-dbg, libv8-dev from the software centre. Then I tried: sudo pecl install v8js-0.1.2. This failed due to (i think) this:

/tmp/pear/temp/v8js/v8js.cc:220: error: no matching function for call to 开发者_开发问答‘v8::Array::Get(unsigned int&)’

and

/tmp/pear/temp/v8js/v8js.cc:438: error: ‘ContextDisposedNotification’ is not a member of ‘v8::V8’

I am assuming it is because the packaged version of libv8 is too old?

I checked out the SVN source (svn co http://v8.googlecode.com/svn/trunk/ v8) and used scons to build it, although it looks like it finished successfully (ranlib libv8.a; scons: done building targets.), I have no idea what to do with what has been generated (and what files were built - there only appears to be .o files built in obj/release/).

I am stuck and somewhat confused as to what I need to do. Help please!


Iam using 10.04 Ubuntu, after upgrade gcc and install newest version of libv8 I can install v8js-0.1.3.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜