drxyaox153896 2011-03-23 11:25
浏览 112

谷歌V8 Javascript引擎,Ubuntu和PHP - 如何建立和工作?

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条回答 默认 最新

  • dongtan8532 2013-02-07 07:10
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿
  • ¥15 init i2c:2 freq:100000[MAIXPY]: find ov2640[MAIXPY]: find ov sensor是main文件哪里有问题吗
  • ¥15 运动想象脑电信号数据集.vhdr
  • ¥15 三因素重复测量数据R语句编写,不存在交互作用
  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了