JBoss + Centos 上的 V8(6/7)

JBoss + Centos 上的 V8(6/7)

我想使用谷歌V8centos6我在一台或多台机器上运行的 JBoss 服务器上使用了 Node.js 引擎centos7

我发现J2V8它应该负责处理这个JNI方面,但是从项目页面我了解到我需要V8在机器上安装一个构建版本才能使用它。

我尝试按照项目中的说明进行编译,但没有成功。

centos7下面是我为使其工作而运行的脚本:

yum install -y git
git clone https://github.com/v8/v8.git
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
cd v8
gclient config https://chromium.googlesource.com/v8/v8
gclient sync
export PYTHONPATH="/root/test/v8/v8/build/" # to include gn_helpers
tools/dev/v8gen.py arm64.release            # pretty sure it's the right one, but tried all of the options and it doesn't work

我收到以下错误:

Traceback (most recent call last):
  File "tools/dev/v8gen.py", line 304, in <module>
    sys.exit(gen.main())
  File "tools/dev/v8gen.py", line 298, in main
    return self._options.func()
  File "tools/dev/v8gen.py", line 166, in cmd_gen
    gn_outdir,
  File "tools/dev/v8gen.py", line 208, in _call_cmd
    stderr=subprocess.STDOUT,
  File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/bin/python', '-u', 'tools/mb/mb.py', 'gen', '-f', 'infra/mb/mb_config.pyl', '-m', 'developer_default', '-b', 'arm64.release', 'out.gn/arm64.release']' returned non-zero exit status 1
  1. 能做到吗?
  2. 在哪个平台上?
  3. 在哪里可以找到有关如何操作的说明?

相关内容