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
# vi helloworld.js
console.log('hello, NodeJS!');
# node helloworld.js
hello, NodeJS!
NodeJS官方网站: