node.js - 我无法在 CENTOS 中安装 NODEJS...为什么?

标签 node.js centos5

我得到了一个具有 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/

相关文章:

node.js Express - 如何异步获取部分 View

javascript - 似乎无法为特定情况制作正则表达式

python - 在 Centos 5 上使用非系统 Openssl 编译 Python 2.7.12

PHPUnit 3.6 PHP 5.2.7 PHP 解析错误 : syntax error, unexpected T_FUNCTION, expecting ')' in/usr/local/bin/phpunit on line 16

php - ftp_login() 错误

javascript - Node.js 中两个子进程之间的管道?

node.js - 用于 ping Heroku 应用程序的 New Relic 替代方案

node.js - saveUninitialized 和重新保存有什么区别?

linux - 从jsp表单在centos 5中创建一个用户

linux - CentOS安装jdk时出错