gpt4 book ai didi

javascript - 在 Mac Lion 上构建 V8 时出错

转载 作者:行者123 更新时间:2023-11-30 05:59:42 25 4
gpt4 key购买 nike

我按照这些说明尝试在 Mac Lion 上构建 V8: http://code.google.com/apis/v8/build.html

我收到这个错误:

    $ scons sample=shell mode=release snapshot=on
scons: Reading SConscript files ...
OSError: [Errno 2] No such file or directory:
File "/Users/pottmi/Tools/v8/v8-read-only/SConstruct", line 1569:
Build()
File "/Users/pottmi/Tools/v8/v8-read-only/SConstruct", line 1517:
opts = GetOptions()
File "/Users/pottmi/Tools/v8/v8-read-only/SConstruct", line 1153:
AddOptions(SIMPLE_OPTIONS, result)
File "/Users/pottmi/Tools/v8/v8-read-only/SConstruct", line 1137:
default = guess(guess_env)
File "/Users/pottmi/Tools/v8/v8-read-only/SConstruct", line 959:
stdout=subprocess.PIPE).communicate()[0]
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672:
None
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1202:
None

以下是我安装的软件版本:

svn, version 1.6.17 (r1128011)
Python 2.7.1
SCons by Steven Knight et al.:
script: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine: v2.1.0.r5357[MODIFIED], 2011/09/09 21:31:03, by bdeegan on ubuntu
engine path: ['/usr/local/lib/scons-2.1.0/SCons']

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/路径存在,但是没有subprocess.py文件。

最佳答案

我相信构建 v8 的推荐方法是使用 gyp。请看http://code.google.com/p/v8/wiki/BuildingWithGYP有关以这种方式构建它的信息。

关于javascript - 在 Mac Lion 上构建 V8 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9405028/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com