0.8.1 在linux下安装 执行./configure 报错如何处理
发布于 12 年前 作者 bigbadbrad 8003 次浏览 最后一次编辑是 8 年前

File “./configure”, line 266 o[‘default_configuration’] = ‘Debug’ if options.debug else ‘Release’ ^ SyntaxError: invalid syntax

7 回复

安装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

先 ./configure --prefix=要安装到的目录 然后再试试

@sumory 原来是make的版本问题。

@icyfire 请问make版本怎么解决?

结个贴吧 1.更新python 无效 继续报错 观察发现g++编译版本有问题,总之各种版本问题 2.把系统换成centos 搞定了。。。。。

回到顶部