我正在pcduino v2上安装nodejs(运行linaro 12.07),在./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 while trying to load /home/ubuntu/node/node.gypError running GYP
我已经安装了它告诉我要在我找到的教程中安装的所有依赖项,那么我缺少什么呢?
最佳答案
在common.gypi的“variables”中添加以下内容:
所以看起来是这样的:
{
'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/