CNode

Ubuntu 13.04 安装Node js时,执行./configure报错

FFelixLv发布于12 年前最后回复12 年前3 回复7675 浏览0 收藏

错误信息: felix@felix-computer:/opt/node-v0.10.25$ ./configure { 'target_defaults': { 'cflags': [], 'default_configuration': 'Release', 'defines': [], 'include_dirs': [], 'libraries': []}, 'variables': { 'clang': 0, 'gcc_version': 48, 'host_arch': 'x64', 'node_install_npm': 'true', 'node_prefix': '', 'node_shared_cares': 'false', 'node_shared_http_parser': 'false', 'node_shared_libuv': 'false', 'node_shared_openssl': 'false', 'node_shared_v8': 'false', 'node_shared_zlib': 'false', 'node_tag': '', 'node_unsafe_optimizations': 0, 'node_use_dtrace': 'false', 'node_use_etw': 'false', 'node_use_openssl': 'true', 'node_use_perfctr': 'false', 'node_use_systemtap': 'false', 'python': '/usr/bin/python', 'target_arch': 'x64', 'v8_enable_gdbjit': 0, 'v8_no_strict_aliasing': 1, 'v8_use_snapshot': 'true'}} creating ./config.gypi Traceback (most recent call last): File "./configure", line 685, in pprint.pformat(output, indent=2) + "\n") File "./configure", line 681, in write f = open(filename, 'w+') IOError: [Errno 13] Permission denied: './config.gypi'

查看回复

回复 (3)

F
FelixLv#1·12 年前

问题原因已查明,执行./configure时,权限不够。以 sudo ./configure执行时,一切正常。

felix@felix-computer:/opt/node-v0.10.25$ sudo ./configure { 'target_defaults': { 'cflags': [], .... 'v8_no_strict_aliasing': 1, 'v8_use_snapshot': 'true'}} creating ./config.gypi creating ./config.mk felix@felix-computer:/opt/node-v0.10.25$

N
nicholasxjy#2·12 年前

12.04和13.10都不需要,只是到最后 sudo make install需要,好像之前要sudo apt-get install libssl-dev

A
alsotang#3·12 年前

用 nvm 装。

参与回复
登录后即可参与回复。登录