在Redhat上安装node.js

在Redhat上安装node.js

在在Redhat上安装node.js

报错:

 

Checking for openssl                     : not found 
Checking for function SSL_library_init   : not found 

Checking for header openssl/crypto.h     : not found 

 

Solution:

1, http://rpmfind.net/linux/rpm2html/search.php?query=openssl-devel

search "openssh-devel"

search "openssh"

然后下载,二者版本要一致。用rpm -i *.rpm 安装。

2,进入到node.js所在的目录里面

3,./configure

全部符合要求

4,make

5,sudo make install

6,再重新运行node,即可解决问题

 

注意:

1,在Redhat v6.2 x86-64 上 yum install openssl_devel 不管用

2,因为要用到加密功能,所以不能configure –without-ssl to disable this message.

posted @ 2012-10-17 10:03  imlucky  阅读(3081)  评论(0编辑  收藏  举报