我试图在使用Debian 9.3构建的本地http / ssh服务器上安装v8js,因此我需要先根据此documentation安装v8 chrome引擎。
但是当我试图运行命令行################################################################################
/usr/bin/python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m developer_default -b x64.release out.gn/x64.release
Writing """\
is_debug = false
target_cpu = "x64"
""" to /home/dev/v8/out.gn/x64.release/args.gn.
/home/dev/v8/buildtools/linux64/gn gen out.gn/x64.release --check
Traceback (most recent call last):
File "tools/mb/mb.py", line 67, in Main
ret = self.args.func()
File "tools/mb/mb.py", line 317, in CmdGen
return self.RunGNGen(vals)
File "tools/mb/mb.py", line 856, in RunGNGen
ret, _, _ = self.Run(cmd)
File "tools/mb/mb.py", line 1378, in Run
ret, out, err = self.Call(cmd, env=env, buffer_output=buffer_output)
File "tools/mb/mb.py", line 1392, in Call
env=env)
File "/usr/lib/python2.7/subprocess.py", line 390, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
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/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/bin/python', '-u', 'tools/mb/mb.py', 'gen', '-f', 'infra/mb/mb_config.pyl', '-m', 'developer_default', '-b', 'x64.release', 'out.gn/x64.release']' returned non-zero exit status 1
时,命令会将此信息发送给我:
{{1}}
显然我不能继续以下安装步骤(我不能使用忍者)而且我真的不了解Python,所以帮助会非常方便:)
PS:我看到(我不记得在哪里)构建v8可能需要最少的RAM(8GB)和磁盘空间(100GB),是不是......?