我得到了一个具有 NODEJS .configure 的版本(node-v0.8.3),因为最新版本没有 .configue o make 或 makeintall ..(刚刚找到了 ./configue 的“如何”)...我的服务器是 CENTOS 5..我想要安装 NODEJS..需要帮助!我遇到以下错误:
xxx@xxx [/usr/local/src/node-v0.8.3]# ./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',
'target_arch': 'x64',
'v8_no_strict_aliasing': 1,
'v8_use_snapshot': 'true'}}
creating ./config.gypi
Traceback (most recent call last):
File "./configure", line 400, in <module>
pprint.pformat(output, indent=2) + "\n")
File "./configure", line 396, in write
f = open(filename, 'w+')
IOError: [Errno 13] Permission denied: './config.gypi'
出了什么问题?
最佳答案
我对Linux一无所知...但我确实成功使用了这些命令:
1: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="d0bdb590a3b5a2a6b5a2feb3bfbd" rel="noreferrer noopener nofollow">[email protected]</a> [/]# cd ~
2: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="513c34112234232734237f323e3c" rel="noreferrer noopener nofollow">[email protected]</a> [~]# mkdir node
3: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="a5c8c0e5d6c0d7d3c0d78bc6cac8" rel="noreferrer noopener nofollow">[email protected]</a> [~]# cd node
4: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e737b5e6d7b6c687b6c307d7173" rel="noreferrer noopener nofollow">[email protected]</a> [~/node]# wget http://nodejs.org/dist/v0.10.4/node-v0.10.4.tar.gz
5: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="3b565e7b485e494d5e4915585456" rel="noreferrer noopener nofollow">[email protected]</a> [~/node]# tar zxvf node-v0.10.4.tar.gz
6: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="503d35102335222635227e333f3d" rel="noreferrer noopener nofollow">[email protected]</a> [~/node]# cd node-v0.10.4
7: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e68b83a6958394908394c885898b" rel="noreferrer noopener nofollow">[email protected]</a> [~/node/node-v0.10.4]# ./configure
8: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f79a92b7849285819285d994989a" rel="noreferrer noopener nofollow">[email protected]</a> [~/node/node-v0.10.4]# make
9: <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c3aea683b0a6b1b5a6b1eda0acae" rel="noreferrer noopener nofollow">[email protected]</a> [~/node/node-v0.10.4]# make install
我在 Centos 5 中遇到权限错误...感谢所有提供帮助的人!
关于node.js - 我无法在 CENTOS 中安装 NODEJS...为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15973842/