javascript - GYP 在 pcduino 上安装 Node 时出错

标签 javascript linux node.js linaro

我在 pcDuino v2(运行 Linaro 12.07)上安装 NodeJS,在 ./configure 步骤中我收到以下错误:

gyp:name 'arm_version' is not defined while evaluating condition 'arm_version==7' in/home/ubuntu/node/deps/v8/tools/gyp/v8.gyp while loading dependencies of/home/ubuntu/node/node.gyp 尝试加载/home/ubuntu/node/node.gyp 运行 GYP 时出错

我已经安装了它告诉我在我找到的教程中安装的所有依赖项,所以我缺少什么?

最佳答案

将以下内容添加到 common.gypi 中的“变量”:

'arm_version%' : '1', 所以它看起来像这样:

{
  'variables': {
  'werror': '',                    # Turn off -Werror in V8 build.
  'visibility%': 'hidden',         # V8's visibility setting
  'target_arch%': 'ia32',          # set v8's target architecture
  'host_arch%': 'ia32',            # set v8's host architecture
  'want_separate_host_toolset': 0, # V8 should not build target and host
  'library%': 'static_library',    # allow override to 'shared_library' for D$
  'component%': 'static_library',  # NB. these names match with what V8 expec$
  'msvs_multi_core_compile': '0',  # we do enable multicore compiles, but not$
  'gcc_version%': 'unknown',
  'clang%': 0,
  'python%': 'python',
  'arm_version%' : '1',

# Enable V8's post-mortem debugging only on unix flavors.

关于javascript - GYP 在 pcduino 上安装 Node 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22559966/

相关文章:

javascript - 一个匹配类的 javascript 选择器,不包括其他的

javascript - 如果 console.log(...arguments) 正常,为什么 var a = ...arguments 会失败?

c - gcc:降低 libc 所需的版本

javascript - Angular Material 选择在应用程序启动时不显示当前的 ngx 翻译语言(在用户手动选择语言之前)

c - exec* POSIX 函数中的管道

python - 执行 apt-get 安装时无法找到包 dh_python

node.js - MongoDB 从 $filter 返回一个对象

javascript - 递归 promise 链

javascript - 使用模型存储在关卡中的数据中的某些字段不会被持久化

javascript - jQuery 替换 "small-caps"- 内容在 <h3> 标签之间复制 HTML