File "./configure", line 266 o[‘default_configuration’] = ‘Debug’ if options.debug else ‘Release’ ^ SyntaxError: invalid syntax
安装2.7.2 python 后 [root@localhost node-v0.8.1]# ./configure { 'target_defaults’: { 'cflags’: [], 'default_configuration’: 'Release’, 'defines’: [], 'include_dirs’: [], 'libraries’: []}, 'variables’: { 'host_arch’: 'x64’, 'node_install_npm’: 'true’, 'node_install_waf’: 'true’, 'node_prefix’: '’, 'node_shared_openssl’: 'false’, 'node_shared_v8’: 'false’, 'node_shared_zlib’: 'false’, 'node_use_dtrace’: 'false’, 'node_use_etw’: 'false’, 'node_use_openssl’: 'true’, 'strict_aliasing’: 'true’, 'target_arch’: 'x64’, 'v8_no_strict_aliasing’: 'false’, 'v8_use_snapshot’: 'true’}} creating ./config.gypi creating ./config.mk
同求,一make就报如下错误:
make -C out BUILDTYPE=Release
make[1]: Entering directory /data/software/node-v0.8.2/out' make[1]: *** 没有规则可以创建“/data/software/node-v0.8.2/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a”需要的目标“/data/software/node-v0.8.2/out/Release/obj.target/v8_base/gen/debug-support.o”。 停止。 make[1]: Leaving directory
/data/software/node-v0.8.2/out’
make: *** [node] 错误 2