谷歌V8 Javascript引擎,Ubuntu和PHP - 如何建立和工作? [英] Google V8 Javascript Engine, Ubuntu and PHP - how to get it built and working?

查看:106
本文介绍了谷歌V8 Javascript引擎,Ubuntu和PHP - 如何建立和工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里有一些帮助。



我正在运行Ubuntu 10.04,我想使用 V8 Javacript引擎。有没有人设法做到这一点?



所以我安装了 libv8-2.0.3 libv8-dbg , libv8-dev 。然后我尝试了:
sudo pecl install v8js-0.1.2 。由于(我认为)这个失败了:

  /tmp/pear/temp/v8js/v8js.cc:220:错误:没有匹配函数调用'v8 :: Array :: Get(unsigned int&)'

  /tmp/pear/temp/v8js/v8js.cc:438:错误:'ContextDisposedNotification'不是'v8 :: V8'

我假设这是因为libv8的打包版本太旧了?



我检查了SVN来源( svn co <​​a href =http://v8.googlecode.com/svn/trunk/ rel =nofollow> http://v8.googlecode.com/svn/trunk/ v8 )并使用 scons 来构建它,虽然看起来它成功完成( ranlib libv8.a; scons:完成构建目标。),但我不知道如何处理已生成的内容(以及构建了什么文件 - 只有在obj / release /)中构建的.o文件。



我陷入困境,有些困惑,我需要做什么。请帮助!

解决方案

我使用10.04 Ubuntu,升级gcc后安装最新版本的libv8我可以安装v8js-0.1.3 。


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.

这篇关于谷歌V8 Javascript引擎,Ubuntu和PHP - 如何建立和工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆