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

烈酒焚心 提交于 2019-12-07 14:05:39

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/5404518/google-v8-javascript-engine-ubuntu-and-php-how-to-get-it-built-and-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!