makefile - brew install v8 : make: *** [out/Makefile. native ] 错误 127

标签 makefile homebrew v8

当我使用命令:brew install v8 时,我得到如下输出:

==> Downloading https://github.com/v8/v8/archive/3.19.18.4.tar.gz
Already downloaded: /Library/Caches/Homebrew/v8-3.19.18.4.tar.gz
==> make dependencies
==> make native -j8 library=shared snapshot=on console=readline
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
              -Ibuild/standalone.gypi --depth=. -S.native  -Dcomponent=shared_library -       Dconsole=readline -Dv8_enable_backtrace=1 -Darm_fpu=default -Darm_float_abi=default
env: python: No such file or directory
make: *** [out/Makefile.native] Error 127

我已经通过 Homebrew 软件安装了 python,所以我不明白为什么它说:'python: No such file or directory'

brew --配置:

HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 2f6dc2694b6af3b827617cfabf8230d6013b137d
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
GCC-4.2: build 5666
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: 2.7.4 => /opt/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

最佳答案

Python 已安装,但可能不在您的路径中,您可以将其添加到 shell 启动脚本中的 PATH 变量中,例如 .bashrc

临时解决方案可能是在您的 shell 中运行它

export PATH=$PATH:/usr/bin/:/usr/local/bin

关于makefile - brew install v8 : make: *** [out/Makefile. native ] 错误 127,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18797707/

相关文章:

makefile - Scons:运行 make 命令作为目标的依赖项

javascript - uv_queue_work 不在 Node 插件中运行 callback_method (c++)

c++ - 如何在 v8 中创建另一个线程

c++ - 覆盖 Makefile 中的宏常量

android - native Activity 和 "unable to load native library"

python - 如何在 macos Catalina 中将 python homebrew 版本设置为默认版本

macos - Mac 10.7.5 上的 Homebrew OpenCV 32 位

ubuntu - 在 ubuntu 18.04 上安装 v8js

c++ - 为什么我的makefile文件返回错误193?

macos - 使用 Homebrew 在 Mac 上安装 GDB 和所有目标