leisure

JAVA - exceed,helloworld
随笔 - 50, 文章 - 0, 评论 - 11, 引用 - 0
数据加载中……

NodeJS安装全过程

# wget http://nodejs.org/dist/node-v0.4.11.tar.gz
# tar -zxvf node-v0.4.11.tar.gz
# cd node-v0.4.11
# ./configure
报了以下错误:
Checking for program g++ or c++              : /usr/bin/g++
Checking for program cpp                         : /usr/bin/cpp
Checking for program ar                            : /usr/bin/ar
Checking for program ranlib                      : /usr/bin/ranlib
Checking for g++                                       : ok
Checking for program gcc or cc                 : /usr/bin/gcc
Checking for program ar                            : /usr/bin/ar
Checking for program ranlib                      : /usr/bin/ranlib
Checking for gcc                                        : ok  
Checking for library dl                                : yes
Checking for openssl                                 : not found
Checking for function SSL_library_init       : not found
Checking for header openssl/crypto.h       : not found
/data/node-v0.4.9/wscript:341: error: Could not autodetect OpenSSL support. Make
sure OpenSSL development packages are installed. Use configure --without-ssl to
disable this message.

安装openssl-devel模块即可,ubuntu安装的是libssl-dev。
# apt-get install libssl-dev
如果提示gcc/g++ not found,安装gcc即可,建议使用gcc 4.6+。

# ./configure
# make
# make install

# node -v
v0.4.11
# vi helloworld.js
console.log('hello, NodeJS!');
# node helloworld.js
hello, NodeJS!

NodeJS官方网站:

posted on 2011-09-14 23:12 leisure 阅读(6162) 评论(0)  编辑  收藏 所属分类: nodejs


只有注册用户登录后才能发表评论。


网站导航: