Ubuntu 13.04 安装Node js时,执行./configure报错
发布于 10 年前 作者 FelixLv 7044 次浏览 最后一次编辑是 8 年前

错误信息: 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 <module> pprint.pformat(output, indent=2) + “\n”) File “./configure”, line 681, in write f = open(filename, ‘w+’) IOError: [Errno 13] Permission denied: ‘./config.gypi’

3 回复

问题原因已查明,执行./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$

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

用 nvm 装。

回到顶部