2 qq791996583 qq791996583 于 2014.08.26 16:52 提问

linux下安装node.js报错,求大神解决

目前正要部署应用到linux服务器上

在安装node.js时各种报错,首先是python版本问题,后来装了python2.7.5,

在执行./configure时,出现这个错误

ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[__func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[
func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[
func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[
func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/hashlib.py", line 139, in
globals()[
func_name] = get_hash(func_name)
File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.

朋友说是openssl的版本问题~目前还没解决...
有没有遇到过相似问题的,求指教一下,头快炸了~

3个回答

jssq_w_tt_msrtbd
jssq_w_tt_msrtbd   2014.08.26 18:20

windows和linux的node.js配置起来的确比较烦躁

le1boy
le1boy   2014.09.28 14:04

NODE JS 是不是下载的有问题啊?

oyljerry
oyljerry   Ds   Rxr 2015.01.23 20:30

对应的python hash库安装一下

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!